summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-08-15 08:27:39 +0000
committerNils Wallménius <nils@rockbox.org>2008-08-15 08:27:39 +0000
commit01729e7a1841d8aae7be37707dbc7146348c9a64 (patch)
tree5490fd9eccdcaef39bbbb91e8a44d1caad9b2ef7 /apps/gui/gwps-common.c
parent9464fdde2d780206e1eddba8cafbfbd4bbff83e4 (diff)
downloadrockbox-01729e7a1841d8aae7be37707dbc7146348c9a64.tar.gz
rockbox-01729e7a1841d8aae7be37707dbc7146348c9a64.zip
FS#9281 Rename of splash functions.
* Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 8c349ea35c..26c5c5d637 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -152,7 +152,7 @@ bool update_onvol_change(struct gui_wps * gwps)
152 gui_wps_refresh(gwps, 0, WPS_REFRESH_NON_STATIC); 152 gui_wps_refresh(gwps, 0, WPS_REFRESH_NON_STATIC);
153 153
154#ifdef HAVE_LCD_CHARCELLS 154#ifdef HAVE_LCD_CHARCELLS
155 gui_splash(gwps->display, 0, "Vol: %3d dB", 155 splashf(0, "Vol: %3d dB",
156 sound_val2phys(SOUND_VOLUME, global_settings.volume)); 156 sound_val2phys(SOUND_VOLUME, global_settings.volume));
157 return true; 157 return true;
158#endif 158#endif
@@ -329,7 +329,7 @@ bool gui_wps_display(void)
329#ifdef HAVE_LCD_BITMAP 329#ifdef HAVE_LCD_BITMAP
330 gui_syncstatusbar_draw(&statusbars, true); 330 gui_syncstatusbar_draw(&statusbars, true);
331#endif 331#endif
332 gui_syncsplash(HZ, ID2P(LANG_END_PLAYLIST)); 332 splash(HZ, ID2P(LANG_END_PLAYLIST));
333 return true; 333 return true;
334 } 334 }
335 else 335 else
@@ -485,16 +485,11 @@ bool update(struct gui_wps *gwps)
485 485
486void display_keylock_text(bool locked) 486void display_keylock_text(bool locked)
487{ 487{
488 char* s;
489 int i; 488 int i;
490 FOR_NB_SCREENS(i) 489 FOR_NB_SCREENS(i)
491 gui_wps[i].display->stop_scroll(); 490 gui_wps[i].display->stop_scroll();
492 491
493 if(locked) 492 splash(HZ, locked ? ID2P(LANG_KEYLOCK_ON) : ID2P(LANG_KEYLOCK_OFF));
494 s = str(LANG_KEYLOCK_ON);
495 else
496 s = str(LANG_KEYLOCK_OFF);
497 gui_syncsplash(HZ, s);
498} 493}
499 494
500#ifdef HAVE_LCD_BITMAP 495#ifdef HAVE_LCD_BITMAP