1
0
Fork 0
forked from len0rd/rockbox

lcd-common: Remove support for custom line heights from viewport.

Since scrolling is now pixel-based this is not necessary anymore. custom line
height is handled by put_line() but can also possible to implement with
lcd_puts_scroll_func().

Change-Id: Iee9b12bf99afac93d95d2a1a6f5d5b4db237b21c
This commit is contained in:
Thomas Martitz 2013-04-16 16:06:13 +02:00
parent 9a4686b563
commit 4978094480
5 changed files with 10 additions and 16 deletions

View file

@ -225,9 +225,7 @@ static bool is_theme_enabled(enum screen_type screen)
int viewport_get_nb_lines(const struct viewport *vp)
{
#ifdef HAVE_LCD_BITMAP
if (!vp->line_height)
return vp->height/font_get(vp->font)->height;
return vp->height/vp->line_height;
return vp->height/font_get(vp->font)->height;
#else
(void)vp;
return 2;
@ -322,7 +320,6 @@ void viewport_set_fullscreen(struct viewport *vp,
set_default_align_flags(vp);
#endif
vp->font = screens[screen].getuifont();
vp->line_height = 0; /* calculate from font height */
vp->drawmode = DRMODE_SOLID;
#if LCD_DEPTH > 1
#ifdef HAVE_REMOTE_LCD