diff options
Diffstat (limited to 'firmware/drivers/touchscreen.c')
-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] = |