(Release branch) Fix the charcell viewport defaults. The statusbar is offscreen on charcell. This fixes e.g. the yesno screen when deleting files.

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_3@21268 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2009-06-12 22:39:27 +00:00
parent 1190acefd8
commit dbe2e6cdf6

View file

@ -64,12 +64,15 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
vp->x = 0; vp->x = 0;
vp->width = screens[screen].lcdwidth; vp->width = screens[screen].lcdwidth;
vp->y = showing_bars(screen)?STATUSBAR_HEIGHT:0;
vp->height = screens[screen].lcdheight - vp->y;
#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_BITMAP
vp->drawmode = DRMODE_SOLID; vp->drawmode = DRMODE_SOLID;
vp->font = FONT_UI; /* default to UI to discourage SYSFONT use */ vp->font = FONT_UI; /* default to UI to discourage SYSFONT use */
vp->y = showing_bars(screen)?STATUSBAR_HEIGHT:0;
#else
vp->y = 0;
#endif #endif
vp->height = screens[screen].lcdheight - vp->y;
#ifdef HAVE_REMOTE_LCD #ifdef HAVE_REMOTE_LCD
/* We only need this test if there is a remote LCD */ /* We only need this test if there is a remote LCD */