summaryrefslogtreecommitdiff
path: root/apps/plugins/mosaique.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mosaique.c')
-rw-r--r--apps/plugins/mosaique.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c
index af5f4d1c01..3d0bfb816a 100644
--- a/apps/plugins/mosaique.c
+++ b/apps/plugins/mosaique.c
@@ -63,6 +63,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
63 63
64#ifdef HAVE_LCD_BITMAP 64#ifdef HAVE_LCD_BITMAP
65 rb->lcd_clear_display(); 65 rb->lcd_clear_display();
66 rb->lcd_set_drawmode(DRMODE_COMPLEMENT);
66#else 67#else
67 if (!pgfx_init(rb, 4, 2)) 68 if (!pgfx_init(rb, 4, 2))
68 { 69 {
@@ -101,10 +102,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
101 } 102 }
102 103
103#ifdef HAVE_LCD_BITMAP 104#ifdef HAVE_LCD_BITMAP
104 rb->lcd_invertrect(LARGE-x, HAUT-y, 2*x+1, 1); 105 rb->lcd_fillrect(LARGE-x, HAUT-y, 2*x+1, 1);
105 rb->lcd_invertrect(LARGE-x, HAUT+y, 2*x+1, 1); 106 rb->lcd_fillrect(LARGE-x, HAUT+y, 2*x+1, 1);
106 rb->lcd_invertrect(LARGE-x, HAUT-y+1, 1, 2*y-1); 107 rb->lcd_fillrect(LARGE-x, HAUT-y+1, 1, 2*y-1);
107 rb->lcd_invertrect(LARGE+x, HAUT-y+1, 1, 2*y-1); 108 rb->lcd_fillrect(LARGE+x, HAUT-y+1, 1, 2*y-1);
108 rb->lcd_update(); 109 rb->lcd_update();
109#else 110#else
110 pgfx_invertrect(LARGE-x, HAUT-y, 2*x+1, 1); 111 pgfx_invertrect(LARGE-x, HAUT-y, 2*x+1, 1);
@@ -120,7 +121,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
120 switch (button) 121 switch (button)
121 { 122 {
122 case MOSAIQUE_QUIT: 123 case MOSAIQUE_QUIT:
123#ifdef HAVE_LCD_CHARCELLS 124#ifdef HAVE_LCD_BITMAP
125 rb->lcd_set_drawmode(DRMODE_SOLID);
126#else
124 pgfx_release(); 127 pgfx_release();
125#endif 128#endif
126 return PLUGIN_OK; 129 return PLUGIN_OK;
@@ -148,7 +151,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
148 default: 151 default:
149 if (rb->default_event_handler(button) == SYS_USB_CONNECTED) 152 if (rb->default_event_handler(button) == SYS_USB_CONNECTED)
150 { 153 {
151#ifdef HAVE_LCD_CHARCELLS 154#ifdef HAVE_LCD_BITMAP
155 rb->lcd_set_drawmode(DRMODE_SOLID);
156#else
152 pgfx_release(); 157 pgfx_release();
153#endif 158#endif
154 return PLUGIN_USB_CONNECTED; 159 return PLUGIN_USB_CONNECTED;