1
0
Fork 0
forked from len0rd/rockbox

Fix a few comments in gwps.c.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21740 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-07-10 11:53:15 +00:00
parent 80b4e5d55d
commit 989ed2be01

View file

@ -258,7 +258,7 @@ static void gwps_fix_statusbars(void)
#if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP)
/* /*
* If the user is unable to see the wps, because the display is deactivated, * If the user is unable to see the wps, because the display is deactivated,
* we surpress updates until the wps gets actived again (the lcd driver will * we surpress updates until the wps is actived again (the lcd driver will
* call this hook to issue an instant update) * call this hook to issue an instant update)
* */ * */
static void wps_lcd_activation_hook(void) static void wps_lcd_activation_hook(void)
@ -315,7 +315,7 @@ int wps_get_touchaction(struct wps_data *data)
/* reposition the touch inside the viewport */ /* reposition the touch inside the viewport */
vx = x - r->wvp->vp.x; vx = x - r->wvp->vp.x;
vy = y - r->wvp->vp.y; vy = y - r->wvp->vp.y;
/* check if its inside this viewport */ /* check if it's inside this viewport */
if (vx >= 0 && vx < r->wvp->vp.x + r->wvp->vp.width && if (vx >= 0 && vx < r->wvp->vp.x + r->wvp->vp.width &&
vy >= 0 && vy < r->wvp->vp.y + r->wvp->vp.height) vy >= 0 && vy < r->wvp->vp.y + r->wvp->vp.height)
{ {
@ -768,8 +768,10 @@ long gui_wps_show(void)
audio_flush_and_reload_tracks(); audio_flush_and_reload_tracks();
} }
break; break;
#endif /* HAVE_TOUCHSCREEN */ #endif /* HAVE_TOUCHSCREEN */
case ACTION_REDRAW: /* yes are locked, just redraw */ /* this case is used by the softlock feature
* it requests a full update here */
case ACTION_REDRAW:
wps_state.do_full_update = true; wps_state.do_full_update = true;
break; break;
case ACTION_NONE: /* Timeout, do a partial update */ case ACTION_NONE: /* Timeout, do a partial update */
@ -894,7 +896,6 @@ static void nextid3available_callback(void* param)
wps_state.do_full_update = true; wps_state.do_full_update = true;
} }
/* wps_state */
static void wps_state_init(void) static void wps_state_init(void)
{ {
@ -917,7 +918,6 @@ static void wps_state_init(void)
add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, nextid3available_callback); add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, nextid3available_callback);
} }
/* wps_state end*/
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
static void statusbar_toggle_handler(void *data) static void statusbar_toggle_handler(void *data)
@ -960,7 +960,7 @@ void gui_sync_wps_init(void)
gui_wps[i].data = &wps_datas[i]; gui_wps[i].data = &wps_datas[i];
gui_wps[i].display = &screens[i]; gui_wps[i].display = &screens[i];
/* Currently no seperate wps_state needed/possible /* Currently no seperate wps_state needed/possible
so use the only aviable ( "global" ) one */ so use the only available ( "global" ) one */
gui_wps[i].state = &wps_state; gui_wps[i].state = &wps_state;
} }
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP