summaryrefslogtreecommitdiffstats
path: root/apps/gui/textarea.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-11-18 02:07:02 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-11-18 02:07:02 +0000
commit8719f0913a0f2d8a90e9ecbc7c0e5336369af6be (patch)
treeb336928b98e48a15d0d1c176105fa21ac557b7c9 /apps/gui/textarea.c
parentec0a8a749bbc3aa25bf4c136352725bd9d2532b5 (diff)
downloadrockbox-8719f0913a0f2d8a90e9ecbc7c0e5336369af6be.tar.gz
rockbox-8719f0913a0f2d8a90e9ecbc7c0e5336369af6be.tar.bz2
rockbox-8719f0913a0f2d8a90e9ecbc7c0e5336369af6be.zip
generic multi-screen support for yes/no screens (like the one when reseting settings or when firmware has changed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/textarea.c')
-rw-r--r--apps/gui/textarea.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/gui/textarea.c b/apps/gui/textarea.c
index d8e730fdc2..d73f20d0e7 100644
--- a/apps/gui/textarea.c
+++ b/apps/gui/textarea.c
@@ -41,6 +41,18 @@ void gui_textarea_update(struct screen * display)
}
#endif
+int gui_textarea_put_message(struct screen * display,
+ struct text_message * message,
+ int ystart)
+{
+ int i;
+ gui_textarea_clear(display);
+ for(i=0;i<message->nb_lines && i+ystart<display->nb_lines;i++)
+ display->puts(0, i+ystart, message->message_lines[i]);
+ gui_textarea_update(display);
+ return(i);
+}
+
void gui_textarea_update_nblines(struct screen * display)
{
#ifdef HAVE_LCD_BITMAP