diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/test_core_jpeg.c | 4 | ||||
-rw-r--r-- | apps/plugins/test_mem_jpeg.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_core_jpeg.c b/apps/plugins/test_core_jpeg.c index 58b667e28e..9e7ecfd3f8 100644 --- a/apps/plugins/test_core_jpeg.c +++ b/apps/plugins/test_core_jpeg.c | |||
@@ -69,10 +69,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
69 | return PLUGIN_ERROR; | 69 | return PLUGIN_ERROR; |
70 | #ifdef USEGSLIB | 70 | #ifdef USEGSLIB |
71 | grey_show(true); | 71 | grey_show(true); |
72 | grey_ub_gray_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, | 72 | grey_ub_gray_bitmap((const unsigned char *)bm.data, (LCD_WIDTH - bm.width) >> 1, |
73 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); | 73 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); |
74 | #else | 74 | #else |
75 | rb->lcd_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, | 75 | rb->lcd_bitmap((const fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, |
76 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); | 76 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); |
77 | #endif | 77 | #endif |
78 | mylcd_ub_update(); | 78 | mylcd_ub_update(); |
diff --git a/apps/plugins/test_mem_jpeg.c b/apps/plugins/test_mem_jpeg.c index d6eda771ad..6e7d381a2d 100644 --- a/apps/plugins/test_mem_jpeg.c +++ b/apps/plugins/test_mem_jpeg.c | |||
@@ -83,7 +83,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
83 | return PLUGIN_ERROR; | 83 | return PLUGIN_ERROR; |
84 | #ifdef USEGSLIB | 84 | #ifdef USEGSLIB |
85 | grey_show(true); | 85 | grey_show(true); |
86 | grey_ub_gray_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, | 86 | grey_ub_gray_bitmap((const unsigned char *)bm.data, (LCD_WIDTH - bm.width) >> 1, |
87 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); | 87 | (LCD_HEIGHT - bm.height) >> 1, bm.width, bm.height); |
88 | #else | 88 | #else |
89 | rb->lcd_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, | 89 | rb->lcd_bitmap((fb_data *)bm.data, (LCD_WIDTH - bm.width) >> 1, |