mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
GTK and Windows appear to handle timers very differently:
specifically, the elapsed time between calls varies much more with GTK than it does under Windows. Therefore, I now take my own time readings on every timer call, and this appears to have made the animations run at closer to the same speed between platforms. Having done that, I decided some of them were at the _wrong_ speed, and fiddled with each game's timings as well. [originally from svn r4189]
This commit is contained in:
@ -19,8 +19,8 @@ const int game_can_configure = TRUE;
|
||||
#define COORD(x) ( (x) * TILE_SIZE + BORDER )
|
||||
#define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 )
|
||||
|
||||
#define ANIM_TIME 0.1F
|
||||
#define FLASH_FRAME 0.1F
|
||||
#define ANIM_TIME 0.13F
|
||||
#define FLASH_FRAME 0.13F
|
||||
|
||||
#define X(state, i) ( (i) % (state)->w )
|
||||
#define Y(state, i) ( (i) / (state)->w )
|
||||
|
Reference in New Issue
Block a user