mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
(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:
parent
1190acefd8
commit
dbe2e6cdf6
1 changed files with 5 additions and 2 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue