summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-08-20 04:07:27 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-08-20 04:07:27 +0000
commit5b349e3cfab837e56f59b441bb1694956b76df81 (patch)
tree935c756fdc511fab221d802b9c46668f531db846 /apps
parent7b4d709f9df3115a1be11d15c1e77c59b5538d8c (diff)
downloadrockbox-5b349e3cfab837e56f59b441bb1694956b76df81.tar.gz
rockbox-5b349e3cfab837e56f59b441bb1694956b76df81.zip
update the display after getting a bit too close to the touchscreen instead of just asking it nicely to change volume!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22436 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/wps.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 4553970422..79f35c61eb 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -630,6 +630,7 @@ int wps_get_touchaction(struct wps_data *data)
630 break; 630 break;
631 case WPS_TOUCHREGION_VOLUME: 631 case WPS_TOUCHREGION_VOLUME:
632 { 632 {
633 int i;
633 const int min_vol = sound_min(SOUND_VOLUME); 634 const int min_vol = sound_min(SOUND_VOLUME);
634 const int max_vol = sound_max(SOUND_VOLUME); 635 const int max_vol = sound_max(SOUND_VOLUME);
635 if(r->width > r->height) 636 if(r->width > r->height)
@@ -643,7 +644,11 @@ int wps_get_touchaction(struct wps_data *data)
643 644
644 global_settings.volume += min_vol; 645 global_settings.volume += min_vol;
645 setvol(); 646 setvol();
646 break; 647 FOR_NB_SCREENS(i)
648 {
649 gui_wps[i].data->button_time_volume = current_tick;
650 }
651 return ACTION_REDRAW;
647 } 652 }
648 } 653 }
649 } 654 }