diff options
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r-- | apps/plugins/calendar.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index 8627c9a558..df23afd721 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c | |||
@@ -154,7 +154,9 @@ static void draw_calendar(struct shown *shown) | |||
154 | rb->lcd_putsxy(ws, (row * h) + 5 ,buffer); | 154 | rb->lcd_putsxy(ws, (row * h) + 5 ,buffer); |
155 | if (shown->mday == j) | 155 | if (shown->mday == j) |
156 | { | 156 | { |
157 | rb->lcd_invertrect(ws, row*h+5, space, h); | 157 | rb->lcd_set_drawmode(DRMODE_COMPLEMENT); |
158 | rb->lcd_fillrect(ws, row*h+5, space, h); | ||
159 | rb->lcd_set_drawmode(DRMODE_SOLID); | ||
158 | shown->wday = pos; | 160 | shown->wday = pos; |
159 | } | 161 | } |
160 | ws += space; | 162 | ws += space; |
@@ -520,7 +522,9 @@ static void show_lines(int selected, struct shown *shown) | |||
520 | k++; | 522 | k++; |
521 | i++; | 523 | i++; |
522 | } | 524 | } |
523 | rb->lcd_invertrect(0, (pos) * h, LCD_WIDTH, h); | 525 | rb->lcd_set_drawmode(DRMODE_COMPLEMENT); |
526 | rb->lcd_fillrect(0, (pos) * h, LCD_WIDTH, h); | ||
527 | rb->lcd_set_drawmode(DRMODE_SOLID); | ||
524 | } | 528 | } |
525 | 529 | ||
526 | static void update_memos_shown(struct shown *shown) | 530 | static void update_memos_shown(struct shown *shown) |