summaryrefslogtreecommitdiff
path: root/firmware/drivers/touchscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/touchscreen.c')
-rwxr-xr-xfirmware/drivers/touchscreen.c4
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 @@
27#include "logf.h" 27#include "logf.h"
28 28
29/* Size of the 'dead zone' around each 3x3 button */ 29/* Size of the 'dead zone' around each 3x3 button */
30#define BUTTON_MARGIN_X LCD_WIDTH * 0.03 30#define BUTTON_MARGIN_X (int)(LCD_WIDTH * 0.03)
31#define BUTTON_MARGIN_Y LCD_HEIGHT * 0.03 31#define BUTTON_MARGIN_Y (int)(LCD_HEIGHT * 0.03)
32 32
33static enum touchscreen_mode current_mode = TOUCHSCREEN_POINT; 33static enum touchscreen_mode current_mode = TOUCHSCREEN_POINT;
34static const int touchscreen_buttons[3][3] = 34static const int touchscreen_buttons[3][3] =