mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Moved declarations to top
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@932 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e2b92ebeed
commit
874fccbbc9
1 changed files with 17 additions and 18 deletions
|
|
@ -100,6 +100,23 @@
|
||||||
|
|
||||||
/*** generic code ***/
|
/*** 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
|
#ifndef SIMULATOR
|
||||||
/*
|
/*
|
||||||
* About /CS,DS,SC,SD
|
* 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 */
|
/* no LCD defined, no code to use */
|
||||||
#endif
|
#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 )
|
void lcd_puts_scroll(int x, int y, char* string )
|
||||||
{
|
{
|
||||||
struct scrollinfo* s = &scroll;
|
struct scrollinfo* s = &scroll;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue