diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-29 11:13:46 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-29 11:13:46 +0000 |
commit | 0501fb016c4d88d3430a34ecc55a003e062b5f63 (patch) | |
tree | 272d3d3c33190c499d2ee4507f23cf532c85e46e /apps/gui/yesno.c | |
parent | 43f0770943a3315561dbdcdb2bbb85b7026248b1 (diff) | |
download | rockbox-0501fb016c4d88d3430a34ecc55a003e062b5f63.tar.gz rockbox-0501fb016c4d88d3430a34ecc55a003e062b5f63.zip |
total removal of gui_textarea. The only thing using the text_message struct is the yesno screen so move its definition to yesno.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17653 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/yesno.c')
-rw-r--r-- | apps/gui/yesno.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index 9232015211..91358d8feb 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -16,7 +16,7 @@ * KIND, either express or implied. * ****************************************************************************/ - +#include "config.h" #include "yesno.h" #include "system.h" #include "kernel.h" @@ -24,7 +24,7 @@ #include "lang.h" #include "action.h" #include "talk.h" -#include "textarea.h" +#include "settings.h" #include "viewport.h" @@ -36,6 +36,24 @@ struct gui_yesno struct viewport *vp; struct screen * display; }; + +static void talk_text_message(const struct text_message * message, bool enqueue) +{ + int line; + if(message) + { + for(line=0; line<message->nb_lines; line++) + { + long id = P2ID((unsigned char *)message->message_lines[line]); + if(id>=0) + { + talk_id(id, enqueue); + enqueue = true; + } + } + } +} + static int put_message(struct screen *display, const struct text_message * message, int start, int max_y) |