diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index a4c9af7539..27022b87d1 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -1367,7 +1367,7 @@ const char *get_token_value(struct gui_wps *gwps, | |||
1367 | case SKIN_TOKEN_LASTTOUCH: | 1367 | case SKIN_TOKEN_LASTTOUCH: |
1368 | { | 1368 | { |
1369 | #ifdef HAVE_TOUCHSCREEN | 1369 | #ifdef HAVE_TOUCHSCREEN |
1370 | unsigned int last_touch = touchscreen_last_touch(); | 1370 | long last_touch = touchscreen_last_touch(); |
1371 | char *skin_base = get_skin_buffer(data); | 1371 | char *skin_base = get_skin_buffer(data); |
1372 | struct touchregion_lastpress *data = SKINOFFSETTOPTR(skin_base, token->value.data); | 1372 | struct touchregion_lastpress *data = SKINOFFSETTOPTR(skin_base, token->value.data); |
1373 | if (!data) return NULL; | 1373 | if (!data) return NULL; |
@@ -1375,7 +1375,7 @@ const char *get_token_value(struct gui_wps *gwps, | |||
1375 | if (region) | 1375 | if (region) |
1376 | last_touch = region->last_press; | 1376 | last_touch = region->last_press; |
1377 | 1377 | ||
1378 | if (last_touch != 0xffff && | 1378 | if (last_touch != -1 && |
1379 | TIME_BEFORE(current_tick, data->timeout + last_touch)) | 1379 | TIME_BEFORE(current_tick, data->timeout + last_touch)) |
1380 | return "t"; | 1380 | return "t"; |
1381 | #endif | 1381 | #endif |