aboutsummaryrefslogtreecommitdiff
path: root/fifteen.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-05-03 09:43:08 +0000
committerSimon Tatham <anakin@pobox.com>2004-05-03 09:43:08 +0000
commitccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1 (patch)
treecb04a0da087247f6e7d846c15c8157a9c012e192 /fifteen.c
parent2d1d54b96ba5b7edf4765230ddf00436eb924a52 (diff)
downloadpuzzles-ccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1.zip
puzzles-ccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1.tar.gz
puzzles-ccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1.tar.bz2
puzzles-ccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1.tar.xz
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]
Diffstat (limited to 'fifteen.c')
-rw-r--r--fifteen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fifteen.c b/fifteen.c
index 3965844..de5a340 100644
--- a/fifteen.c
+++ b/fifteen.c
@@ -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 )