diff options
Diffstat (limited to 'src/wm-tester/test-gravity.c')
-rw-r--r-- | src/wm-tester/test-gravity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wm-tester/test-gravity.c b/src/wm-tester/test-gravity.c index cb8512a0..68aad509 100644 --- a/src/wm-tester/test-gravity.c +++ b/src/wm-tester/test-gravity.c @@ -83,8 +83,8 @@ calculate_position (int i, int is_doubled, int *x, int *y) yoff *= 2; } - *x = screen_x_fraction[i % 3] * screen_width + xoff; - *y = screen_y_fraction[i / 3] * screen_height + yoff; + *x = (int) (screen_x_fraction[i % 3] * (double) screen_width) + xoff; + *y = (int) (screen_y_fraction[i / 3] * (double) screen_height) + yoff; } } |