diff options
Diffstat (limited to 'apps/plugins/flipit.c')
-rw-r--r-- | apps/plugins/flipit.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 57cbad213d..d6774fc968 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c | |||
@@ -71,9 +71,9 @@ static unsigned char cursor_pic[32] = { | |||
71 | /* draw a spot at the coordinates (x,y), range of p is 0-19 */ | 71 | /* draw a spot at the coordinates (x,y), range of p is 0-19 */ |
72 | static void draw_spot(int p) { | 72 | static void draw_spot(int p) { |
73 | ptr = spot_pic[spots[p]]; | 73 | ptr = spot_pic[spots[p]]; |
74 | rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+1, 14, 8, true); | 74 | rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+1, 14, 8); |
75 | ptr += 14; | 75 | ptr += 14; |
76 | rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+9, 14, 6, true); | 76 | rb->lcd_bitmap (ptr, (p%5)*16+1, (p/5)*16+9, 14, 6); |
77 | } | 77 | } |
78 | 78 | ||
79 | /* draw the cursor at the current cursor position */ | 79 | /* draw the cursor at the current cursor position */ |
@@ -81,10 +81,12 @@ static void draw_cursor(void) { | |||
81 | int i,j; | 81 | int i,j; |
82 | i = (cursor_pos%5)*16; | 82 | i = (cursor_pos%5)*16; |
83 | j = (cursor_pos/5)*16; | 83 | j = (cursor_pos/5)*16; |
84 | rb->lcd_set_drawmode(DRMODE_FG); | ||
84 | ptr = cursor_pic; | 85 | ptr = cursor_pic; |
85 | rb->lcd_bitmap (ptr, i, j, 16, 8, false); | 86 | rb->lcd_bitmap (ptr, i, j, 16, 8); |
86 | ptr += 16; | 87 | ptr += 16; |
87 | rb->lcd_bitmap (ptr, i, j+8, 16, 8, false); | 88 | rb->lcd_bitmap (ptr, i, j+8, 16, 8); |
89 | rb->lcd_set_drawmode(DRMODE_SOLID); | ||
88 | } | 90 | } |
89 | 91 | ||
90 | /* clear the cursor where it is */ | 92 | /* clear the cursor where it is */ |