diff options
Diffstat (limited to 'apps/plugins/maze.c')
-rw-r--r-- | apps/plugins/maze.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index 2fbdd60480..7f0c058708 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c | |||
@@ -176,8 +176,8 @@ void maze_draw(struct maze* maze, struct screen* display) | |||
176 | int point_width, point_height, point_offset_x, point_offset_y; | 176 | int point_width, point_height, point_offset_x, point_offset_y; |
177 | unsigned short cell; | 177 | unsigned short cell; |
178 | 178 | ||
179 | wx = (int) display->getwidth() / MAZE_WIDTH; | 179 | wx = (int) display->lcdwidth / MAZE_WIDTH; |
180 | wy = (int) display->getheight() / MAZE_HEIGHT; | 180 | wy = (int) display->lcdheight / MAZE_HEIGHT; |
181 | 181 | ||
182 | if(wx>3){ | 182 | if(wx>3){ |
183 | point_width=wx-3; | 183 | point_width=wx-3; |
@@ -484,6 +484,9 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
484 | /* Turn off backlight timeout */ | 484 | /* Turn off backlight timeout */ |
485 | backlight_force_on(rb); /* backlight control in lib/helper.c */ | 485 | backlight_force_on(rb); /* backlight control in lib/helper.c */ |
486 | 486 | ||
487 | FOR_NB_SCREENS(i) | ||
488 | rb->screens[i]->set_viewport(NULL); | ||
489 | |||
487 | #if LCD_DEPTH > 1 | 490 | #if LCD_DEPTH > 1 |
488 | rb->lcd_set_backdrop(NULL); | 491 | rb->lcd_set_backdrop(NULL); |
489 | #if LCD_DEPTH >= 16 | 492 | #if LCD_DEPTH >= 16 |