FS#11096 - fix the "last touch" tag from being true on boot
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26852 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2e320f66f4
commit
f98ea7142e
1 changed files with 6 additions and 2 deletions
|
@ -1040,11 +1040,15 @@ const char *get_token_value(struct gui_wps *gwps,
|
|||
return NULL;
|
||||
|
||||
case WPS_TOKEN_LASTTOUCH:
|
||||
{
|
||||
#ifdef HAVE_TOUCHSCREEN
|
||||
if (TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT +
|
||||
touchscreen_last_touch()))
|
||||
unsigned int last_touch = touchscreen_last_touch();
|
||||
if (last_touch != 0xffff &&
|
||||
TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT +
|
||||
last_touch))
|
||||
return "t";
|
||||
#endif
|
||||
}
|
||||
return NULL;
|
||||
|
||||
case WPS_TOKEN_SETTING:
|
||||
|
|
Loading…
Reference in a new issue