summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui/gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/gui.cpp b/gui/gui.cpp
index 87556891d..9f221383e 100644
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -185,6 +185,8 @@ input_thread (void *cookie)
static struct timeval touchStart;
HardwareKeyboard kb;
string seconds;
+ int screen_width = gr_fb_width();
+ int screen_height = gr_fb_height();
//start screen timeout threads
blankTimer.setTimerThread();
@@ -198,7 +200,7 @@ input_thread (void *cookie)
struct input_event ev;
int state = 0, ret = 0;
- ret = ev_get (&ev, dontwait);
+ ret = ev_get (&ev, dontwait, &screen_width, &screen_height);
if (ret < 0)
{