From ccbf3ca6f1950fb1e39df40b2d44fe99ab9de0d1 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 3 May 2004 09:43:08 +0000 Subject: 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] --- cube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cube.c') diff --git a/cube.c b/cube.c index ccc8689..5e0b449 100644 --- a/cube.c +++ b/cube.c @@ -160,7 +160,7 @@ enum { enum { LEFT, RIGHT, UP, DOWN, UP_LEFT, UP_RIGHT, DOWN_LEFT, DOWN_RIGHT }; #define GRID_SCALE 48.0F -#define ROLLTIME 0.1F +#define ROLLTIME 0.13F #define SQ(x) ( (x) * (x) ) -- cgit v1.1