From 874fccbbc912582b4bb0bc1b30e2a6788a0d32f0 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 10 Jun 2002 12:41:12 +0000 Subject: Moved declarations to top git-svn-id: svn://svn.rockbox.org/rockbox/trunk@932 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 5b8303114c..f82ceb44a1 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -100,6 +100,23 @@ /*** generic code ***/ +struct scrollinfo { + char text[128]; + int textlen; + char offset; + char xpos; + char startx; + char starty; + char space; +}; + +static void scroll_thread(void); +static char scroll_stack[0x100]; +static char scroll_speed = 10; /* updates per second */ + +static struct scrollinfo scroll; /* only one scroll line at the moment */ +static bool run_scroll = false; + #ifndef SIMULATOR /* * About /CS,DS,SC,SD @@ -746,24 +763,6 @@ void lcd_getfontsize(unsigned int font, int *width, int *height) /* no LCD defined, no code to use */ #endif - -struct scrollinfo { - char text[128]; - int textlen; - char offset; - char xpos; - char startx; - char starty; - char space; -}; - -static void scroll_thread(void); -static char scroll_stack[0x100]; -static char scroll_speed = 10; /* updates per second */ - -static struct scrollinfo scroll; /* only one scroll line at the moment */ -static bool run_scroll = false; - void lcd_puts_scroll(int x, int y, char* string ) { struct scrollinfo* s = &scroll; -- cgit v1.2.3