summaryrefslogtreecommitdiffstats
path: root/apps/gui/textarea.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
committerJens Arnold <amiconn@rockbox.org>2007-04-06 22:55:00 +0000
commitf9b90e91031dbd23fed24e832de4d8d2e15151a0 (patch)
tree964a492f1c4a658ec0ecb82d100ce62d2f6ec93a /apps/gui/textarea.c
parenta5d7309d96cca974e1524dc746482ab2a26d7395 (diff)
downloadrockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.gz
rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.tar.bz2
rockbox-f9b90e91031dbd23fed24e832de4d8d2e15151a0.zip
Now charcell displays require lcd_update() for updating the main lcd content like bitmap displays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/textarea.c')
-rw-r--r--apps/gui/textarea.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/gui/textarea.c b/apps/gui/textarea.c
index 54aa7e4a6c..0dd063c493 100644
--- a/apps/gui/textarea.c
+++ b/apps/gui/textarea.c
@@ -33,14 +33,16 @@ void gui_textarea_clear(struct screen * display)
#endif
}
-#ifdef HAVE_LCD_BITMAP
void gui_textarea_update(struct screen * display)
{
+#ifdef HAVE_LCD_BITMAP
int y_start = gui_textarea_get_ystart(display);
int y_end = gui_textarea_get_yend(display);
display->update_rect(0, y_start, display->width, y_end - y_start);
-}
+#else
+ display->update();
#endif
+}
int gui_textarea_put_message(struct screen * display,
struct text_message * message,
@@ -56,8 +58,8 @@ int gui_textarea_put_message(struct screen * display,
void gui_textarea_update_nblines(struct screen * display)
{
-#ifdef HAVE_LCD_BITMAP
int height=display->height;
+#ifdef HAVE_LCD_BITMAP
if(global_settings.statusbar)
height -= STATUSBAR_HEIGHT;
#ifdef HAS_BUTTONBAR
@@ -66,11 +68,9 @@ void gui_textarea_update_nblines(struct screen * display)
#endif
display->getstringsize((unsigned char *)"A", &display->char_width,
&display->char_height);
- display->nb_lines = height / display->char_height;
#else
display->char_width = 1;
display->char_height = 1;
- /* default on char based player supported by rb */
- display->nb_lines = MAX_LINES_ON_SCREEN;
#endif
+ display->nb_lines = height / display->char_height;
}