summaryrefslogtreecommitdiffstats
path: root/apps/gui
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-12 01:50:21 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-12 01:50:21 +0100
commit0a0d61e777c47d742be195dd9c661065be0eb7da (patch)
treefdb9660885991731d0122f74395a8b7a677c8123 /apps/gui
parent488a1b983e1c2fac14de25aa781caf12628e53c8 (diff)
downloadrockbox-0a0d61e777c47d742be195dd9c661065be0eb7da.tar.gz
rockbox-0a0d61e777c47d742be195dd9c661065be0eb7da.zip
Fix remote warnings and charcell reds, and remove minor left-over tuff.
Change-Id: I10987ea9fcad94d502afd4ae4a80ab9022c75d2e
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/line.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/gui/line.c b/apps/gui/line.c
index e2eb6f277b..fe017970e6 100644
--- a/apps/gui/line.c
+++ b/apps/gui/line.c
@@ -53,18 +53,15 @@ static void put_text(struct screen *display, int x, int y, struct line_desc *lin
struct line_desc_scroll {
struct line_desc desc; /* must be first! */
bool used;
-};
-
-#define NOINLINE __attribute__ ((noinline))
+} lines[MAX_LINES];
-struct line_desc_scroll *get_line_desc(void) NOINLINE;
-struct line_desc_scroll *get_line_desc(void)
+static struct line_desc_scroll *get_line_desc(void)
{
- static struct line_desc_scroll lines[MAX_LINES];
static unsigned line_index;
struct line_desc_scroll *this;
- do {
+ do
+ {
this = &lines[line_index++];
if (line_index >= ARRAYLEN(lines))
line_index = 0;
@@ -87,7 +84,6 @@ static void scroller(struct scrollinfo *s, struct screen *display)
line->used = false;
}
else
- if (s->line)
{
style_line(display, s->x, s->y - (line->desc.height/2 - display->getcharheight()/2), &line->desc);
put_text(display, s->x, s->y, &line->desc, s->line, true, s->offset);