From 59368e1750abcbe7c7d3611f8d0b1bb956a0505b Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Sun, 27 Sep 2009 14:11:16 +0000 Subject: Fix delta from r22843, due to unintended FP usage git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22844 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/touchscreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers/touchscreen.c') diff --git a/firmware/drivers/touchscreen.c b/firmware/drivers/touchscreen.c index bf63e488ec..9660e0cb9d 100755 --- a/firmware/drivers/touchscreen.c +++ b/firmware/drivers/touchscreen.c @@ -27,8 +27,8 @@ #include "logf.h" /* Size of the 'dead zone' around each 3x3 button */ -#define BUTTON_MARGIN_X LCD_WIDTH * 0.03 -#define BUTTON_MARGIN_Y LCD_HEIGHT * 0.03 +#define BUTTON_MARGIN_X (int)(LCD_WIDTH * 0.03) +#define BUTTON_MARGIN_Y (int)(LCD_HEIGHT * 0.03) static enum touchscreen_mode current_mode = TOUCHSCREEN_POINT; static const int touchscreen_buttons[3][3] = -- cgit v1.2.3