Changeset 174


Ignore:
Timestamp:
Aug 26, 2010, 1:46:00 PM (10 years ago)
Author:
sam
Message:

Do not use SDL for Win32 timers. The OS has all we need.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/timer.cpp

    r173 r174  
    1818#   define WIN32_LEAN_AND_MEAN
    1919#   include <windows.h>
    20 #   include <SDL.h> // FIXME: this should not be needed
    2120#else
    2221#   include <SDL.h>
     
    7069        towait = deltams - ret;
    7170        if (towait > 5e-4f) // FIXME: use native Win32 stuff
    72             SDL_Delay((int)(towait + 0.5f));
     71            Sleep((int)(towait + 0.5f));
    7372#else
    7473        /* The crappy SDL fallback */
Note: See TracChangeset for help on using the changeset viewer.