C89 fix: variables first then code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5945 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
468f9ecbab
commit
74f941e75c
1 changed files with 6 additions and 2 deletions
|
@ -122,11 +122,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
|
||||||
int x = (LCD_WIDTH / 2) - (WIDTH / 2);
|
int x = (LCD_WIDTH / 2) - (WIDTH / 2);
|
||||||
int y = (LCD_HEIGHT / 2) - (HEIGHT / 2);
|
int y = (LCD_HEIGHT / 2) - (HEIGHT / 2);
|
||||||
struct plugin_api* rb = api;
|
struct plugin_api* rb = api;
|
||||||
|
int dx;
|
||||||
|
int dy;
|
||||||
|
|
||||||
TEST_PLUGIN_API(api);
|
TEST_PLUGIN_API(api);
|
||||||
(void)parameter;
|
(void)parameter;
|
||||||
rb->srand(*rb->current_tick);
|
rb->srand(*rb->current_tick);
|
||||||
int dx = rb->rand()%11 - 5;
|
|
||||||
int dy = rb->rand()%11 - 5;
|
dx = rb->rand()%11 - 5;
|
||||||
|
dy = rb->rand()%11 - 5;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
|
|
Loading…
Reference in a new issue