diff options
Diffstat (limited to 'apps/plugins/sliding_puzzle.c')
-rw-r--r-- | apps/plugins/sliding_puzzle.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index a1c87f49d7..12c7a9aafa 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c | |||
@@ -24,7 +24,6 @@ static int spots[20]; | |||
24 | static int hole = 19, moves; | 24 | static int hole = 19, moves; |
25 | static char s[5]; | 25 | static char s[5]; |
26 | static bool pic = true; | 26 | static bool pic = true; |
27 | static unsigned char *ptr; | ||
28 | static unsigned char picture[20][32] = { | 27 | static unsigned char picture[20][32] = { |
29 | { 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0xf8, 0xd9, | 28 | { 0x00, 0x00, 0x00, 0x00, 0x18, 0x38, 0xf8, 0xd9, |
30 | 0x10, 0xb0, 0x60, 0xc0, 0x80, 0x00, 0x30, 0x78, | 29 | 0x10, 0xb0, 0x60, 0xc0, 0x80, 0x00, 0x30, 0x78, |
@@ -131,10 +130,7 @@ static unsigned char picture[20][32] = { | |||
131 | static void draw_spot(int p, int x, int y) | 130 | static void draw_spot(int p, int x, int y) |
132 | { | 131 | { |
133 | if (pic || p==20) { | 132 | if (pic || p==20) { |
134 | ptr = picture[p-1]; | 133 | rb->lcd_bitmap (picture[p-1], x, y, 16, 16, true); |
135 | rb->lcd_bitmap (ptr, x, y, 16, 8, true); | ||
136 | ptr += 16; | ||
137 | rb->lcd_bitmap (ptr, x, y+8, 16, 8, true); | ||
138 | } else { | 134 | } else { |
139 | rb->lcd_drawrect(x, y, 16, 16); | 135 | rb->lcd_drawrect(x, y, 16, 16); |
140 | rb->lcd_clearrect(x+1, y+1, 14, 14); | 136 | rb->lcd_clearrect(x+1, y+1, 14, 14); |