summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-11-29 00:19:51 +0000
committerJens Arnold <amiconn@rockbox.org>2004-11-29 00:19:51 +0000
commita5a6fa930c601298780173f889f1b9d7f867ad1a (patch)
tree7bf96727529a02dd7568a51a110458b8242bbc48
parent8e43f77ef1929cf14f4cc107924b14b18107860b (diff)
Correctly display paused state
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5470 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/metronome.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c
index f980989978..cf93aa5b11 100644
--- a/apps/plugins/metronome.c
+++ b/apps/plugins/metronome.c
@@ -189,10 +189,10 @@ void change_volume(int delta){
if (vol != rb->global_settings->volume) {
rb->mpeg_sound_set(SOUND_VOLUME, vol);
rb->global_settings->volume = vol;
- rb->snprintf(buffer, sizeof(buffer), "Vol: %d ", vol);
+ rb->snprintf(buffer, sizeof(buffer), "Vol: %d ", vol);
#ifdef HAVE_LCD_BITMAP
rb->lcd_puts(10,7, buffer);
- rb->lcd_update();
+ rb->lcd_update();
#else
rb->lcd_puts(0,1, buffer);
#endif
@@ -293,8 +293,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter){
break;
case METRONOME_PAUSE:
- if(!sound_paused)
+ if(!sound_paused) {
sound_paused = true;
+ draw_display();
+ }
break;
#else
case METRONOME_PLAYPAUSE: