Fix touch not working due to gr_fb_width returning 0 in some cases

Change-Id: Id5ce607a181110118ebc647fc07d387a7a3dc660
This commit is contained in:
Dees_Troy
2013-08-07 15:52:20 +00:00
parent b8934dd456
commit 70e1129612
3 changed files with 19 additions and 18 deletions
+3 -1
View File
@@ -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)
{