diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-09-27 14:11:16 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-09-27 14:11:16 +0000 |
commit | 59368e1750abcbe7c7d3611f8d0b1bb956a0505b (patch) | |
tree | 58a8e27e978a7c0253dda31e80071096f749e5ed | |
parent | 2f3e0fbcd05c13cf9faffa92773e7e4390ba0ab7 (diff) | |
download | rockbox-59368e1750abcbe7c7d3611f8d0b1bb956a0505b.tar.gz rockbox-59368e1750abcbe7c7d3611f8d0b1bb956a0505b.zip |
Fix delta from r22843, due to unintended FP usage
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22844 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | firmware/drivers/touchscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
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] = |