Changeset 173


Ignore:
Timestamp:
Aug 23, 2010, 6:39:19 PM (10 years ago)
Author:
sam
Message:

Fix a Win32 timer regression bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/timer.cpp

    r150 r173  
    7070        towait = deltams - ret;
    7171        if (towait > 5e-4f) // FIXME: use native Win32 stuff
    72             SDL_Delay((int)(towait * 1e3f + 0.5f));
     72            SDL_Delay((int)(towait + 0.5f));
    7373#else
    7474        /* The crappy SDL fallback */
Note: See TracChangeset for help on using the changeset viewer.