Moved declarations to top

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@932 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-06-10 12:41:12 +00:00
parent e2b92ebeed
commit 874fccbbc9

View file

@ -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;