diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-08-28 14:22:40 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-08-28 14:22:40 +0000 |
commit | aad11165dca1d80bdf4ef88cf38a60f68430ac50 (patch) | |
tree | b435692433341cf879374786ce9478786b68c2bc /apps/recorder/boxes.c | |
parent | 513044fe58db65732961650e8161c174a1bab0db (diff) | |
download | rockbox-aad11165dca1d80bdf4ef88cf38a60f68430ac50.tar.gz rockbox-aad11165dca1d80bdf4ef88cf38a60f68430ac50.zip |
Changed the lcd_drawrect() api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2038 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/boxes.c')
-rw-r--r-- | apps/recorder/boxes.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/recorder/boxes.c b/apps/recorder/boxes.c index 60fdef6f9b..9c38cd4e83 100644 --- a/apps/recorder/boxes.c +++ b/apps/recorder/boxes.c | |||
@@ -38,14 +38,11 @@ | |||
38 | static void ss_loop(void) | 38 | static void ss_loop(void) |
39 | { | 39 | { |
40 | int b; | 40 | int b; |
41 | int x2 = LCD_WIDTH/2; | ||
42 | int y2 = LCD_HEIGHT/2; | ||
43 | int x = LCD_WIDTH/2; | 41 | int x = LCD_WIDTH/2; |
44 | int y = LCD_HEIGHT/2; | 42 | int y = LCD_HEIGHT/2; |
45 | int i = 0; | 43 | int i = 0; |
46 | int center = 0; | 44 | int center = 0; |
47 | int factor = 0; | 45 | int factor = 0; |
48 | int offset = 0; | ||
49 | 46 | ||
50 | if (LCD_HEIGHT < LCD_WIDTH) | 47 | if (LCD_HEIGHT < LCD_WIDTH) |
51 | center = LCD_HEIGHT/2; | 48 | center = LCD_HEIGHT/2; |
@@ -67,14 +64,12 @@ static void ss_loop(void) | |||
67 | i = center; | 64 | i = center; |
68 | } | 65 | } |
69 | 66 | ||
70 | offset=i*factor; | ||
71 | |||
72 | b = button_get(false); | 67 | b = button_get(false); |
73 | if ( b & BUTTON_OFF ) | 68 | if ( b & BUTTON_OFF ) |
74 | return; | 69 | return; |
75 | 70 | ||
76 | lcd_clear_display(); | 71 | lcd_clear_display(); |
77 | lcd_drawrect(x-offset, y-offset, x2+offset, y2+offset); | 72 | lcd_drawrect(x-i, y-i, 2*i+1, 2*i+1); |
78 | lcd_update(); | 73 | lcd_update(); |
79 | 74 | ||
80 | i+=factor; | 75 | i+=factor; |