summaryrefslogtreecommitdiff
path: root/apps/plugins/maze.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-07-13 07:23:08 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-07-13 07:23:08 +0000
commit69d468fd060fc883b109d6b9e866196c3e600082 (patch)
treeed9cbc78e83aa4ffaf707b372e48367347add66e /apps/plugins/maze.c
parenta5afecb02b7a8c71c3184301d55f4fd20b40f068 (diff)
fix FS#9184 hopefully...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18023 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/maze.c')
-rw-r--r--apps/plugins/maze.c7
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)
int point_width, point_height, point_offset_x, point_offset_y;
unsigned short cell;
- wx = (int) display->getwidth() / MAZE_WIDTH;
- wy = (int) display->getheight() / MAZE_HEIGHT;
+ wx = (int) display->lcdwidth / MAZE_WIDTH;
+ wy = (int) display->lcdheight / MAZE_HEIGHT;
if(wx>3){
point_width=wx-3;
@@ -484,6 +484,9 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
/* Turn off backlight timeout */
backlight_force_on(rb); /* backlight control in lib/helper.c */
+ FOR_NB_SCREENS(i)
+ rb->screens[i]->set_viewport(NULL);
+
#if LCD_DEPTH > 1
rb->lcd_set_backdrop(NULL);
#if LCD_DEPTH >= 16