diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2010-04-11 12:28:02 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2010-04-11 12:28:02 +0000 |
| commit | 268c6d1e7f54379f78a8a69002ad133056f7f452 (patch) | |
| tree | bca9fd19f9eef83da0be69490602a776ddcc540b | |
| parent | 629bf3e94a0d550ccd8b36fd7b744d414be74b86 (diff) | |
| download | rockbox-268c6d1e7f54379f78a8a69002ad133056f7f452.zip rockbox-268c6d1e7f54379f78a8a69002ad133056f7f452.tar.gz rockbox-268c6d1e7f54379f78a8a69002ad133056f7f452.tar.bz2 rockbox-268c6d1e7f54379f78a8a69002ad133056f7f452.tar.xz | |
Fix two viewport related charcell bugs: crashes in the yesno screen and the USB screen. This mess should really be fixed properly by enabling viewport management for charcell.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25587 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/usb_screen.c | 5 | ||||
| -rw-r--r-- | apps/gui/yesno.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index 022d574..019aec6 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -270,7 +270,10 @@ void gui_usb_screen_run(void) struct screen *screen = &screens[i]; screen->set_viewport(NULL); -#ifdef HAVE_LCD_BITMAP +#ifdef HAVE_LCD_CHARCELLS + /* Quick fix. Viewports should really be enabled proper for charcell */ + viewport_set_defaults(&usb_screen_vps_ar[i].parent, i); +#else usb_screen_fix_viewports(screen, &usb_screen_vps_ar[i]); #endif } diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index a153a43..a834aa7 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -144,7 +144,12 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, yn[i].result_message[YESNO_NO]=no_message; yn[i].display=&screens[i]; yn[i].vp = &vp[i]; +#ifdef HAVE_LCD_CHARCELLS + /* Quick fix. Viewports should really be enabled proper for charcell */ + viewport_set_defaults(yn[i].vp, i); +#else viewportmanager_theme_enable(i, true, yn[i].vp); +#endif screens[i].stop_scroll(); gui_yesno_draw(&(yn[i])); } |