diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-08-03 06:51:27 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-03 06:51:27 +0000 |
commit | ce23f3d9215ebbd12d2f9847cd13b36b61ca3ee6 (patch) | |
tree | 7c7b2d27427d76da2275ea6d6cd3817b5999bb15 | |
parent | 6cc67cea0a729954bb2bf854382ff3e573450fb7 (diff) | |
download | rockbox-ce23f3d9215ebbd12d2f9847cd13b36b61ca3ee6.tar.gz rockbox-ce23f3d9215ebbd12d2f9847cd13b36b61ca3ee6.zip |
Greyscale targets: Fix empty display when returning from menu without action. Don't show remnants of old info during disk spinup when loading a new file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10426 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/jpeg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 5166f4ef5e..34640d8b92 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c | |||
@@ -2140,7 +2140,7 @@ int show_menu(void) /* return 1 to quit */ | |||
2140 | case 4: | 2140 | case 4: |
2141 | break; | 2141 | break; |
2142 | } | 2142 | } |
2143 | MYLCD(clear_display)(); | 2143 | rb->lcd_clear_display(); |
2144 | rb->menu_exit(m); | 2144 | rb->menu_exit(m); |
2145 | return 0; | 2145 | return 0; |
2146 | } | 2146 | } |
@@ -2727,13 +2727,14 @@ int load_and_show(char* filename) | |||
2727 | 2727 | ||
2728 | #ifdef USEGSLIB | 2728 | #ifdef USEGSLIB |
2729 | gray_show(false); /* switch off overlay */ | 2729 | gray_show(false); /* switch off overlay */ |
2730 | #else | ||
2731 | rb->lcd_clear_display(); | ||
2732 | #endif | 2730 | #endif |
2733 | 2731 | rb->lcd_clear_display(); | |
2734 | } | 2732 | } |
2735 | while (status != PLUGIN_OK && status != PLUGIN_USB_CONNECTED | 2733 | while (status != PLUGIN_OK && status != PLUGIN_USB_CONNECTED |
2736 | && status != PLUGIN_OTHER); | 2734 | && status != PLUGIN_OTHER); |
2735 | #ifdef USEGSLIB | ||
2736 | rb->lcd_update(); | ||
2737 | #endif | ||
2737 | return status; | 2738 | return status; |
2738 | } | 2739 | } |
2739 | 2740 | ||