diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-02-15 09:27:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-15 09:27:23 +0000 |
commit | 74f941e75c6efaf3874766ada1eb0b2d61e7b139 (patch) | |
tree | c610c11c4c84323653327009763aed01a1614765 | |
parent | 468f9ecbab0cff2addce69decd6b261dd9bd9747 (diff) | |
download | rockbox-74f941e75c6efaf3874766ada1eb0b2d61e7b139.tar.gz rockbox-74f941e75c6efaf3874766ada1eb0b2d61e7b139.zip |
C89 fix: variables first then code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5945 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/logo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index b804264b45..50e9c02d68 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c | |||
@@ -122,11 +122,15 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { | |||
122 | int x = (LCD_WIDTH / 2) - (WIDTH / 2); | 122 | int x = (LCD_WIDTH / 2) - (WIDTH / 2); |
123 | int y = (LCD_HEIGHT / 2) - (HEIGHT / 2); | 123 | int y = (LCD_HEIGHT / 2) - (HEIGHT / 2); |
124 | struct plugin_api* rb = api; | 124 | struct plugin_api* rb = api; |
125 | int dx; | ||
126 | int dy; | ||
127 | |||
125 | TEST_PLUGIN_API(api); | 128 | TEST_PLUGIN_API(api); |
126 | (void)parameter; | 129 | (void)parameter; |
127 | rb->srand(*rb->current_tick); | 130 | rb->srand(*rb->current_tick); |
128 | int dx = rb->rand()%11 - 5; | 131 | |
129 | int dy = rb->rand()%11 - 5; | 132 | dx = rb->rand()%11 - 5; |
133 | dy = rb->rand()%11 - 5; | ||
130 | 134 | ||
131 | while (1) { | 135 | while (1) { |
132 | rb->lcd_clear_display(); | 136 | rb->lcd_clear_display(); |