1
0
Fork 0
forked from len0rd/rockbox

fix FS#9184 hopefully...

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18023 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-07-13 07:23:08 +00:00
parent a5afecb02b
commit 69d468fd06

View file

@ -176,8 +176,8 @@ void maze_draw(struct maze* maze, struct screen* display)
int point_width, point_height, point_offset_x, point_offset_y; int point_width, point_height, point_offset_x, point_offset_y;
unsigned short cell; unsigned short cell;
wx = (int) display->getwidth() / MAZE_WIDTH; wx = (int) display->lcdwidth / MAZE_WIDTH;
wy = (int) display->getheight() / MAZE_HEIGHT; wy = (int) display->lcdheight / MAZE_HEIGHT;
if(wx>3){ if(wx>3){
point_width=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 */ /* Turn off backlight timeout */
backlight_force_on(rb); /* backlight control in lib/helper.c */ backlight_force_on(rb); /* backlight control in lib/helper.c */
FOR_NB_SCREENS(i)
rb->screens[i]->set_viewport(NULL);
#if LCD_DEPTH > 1 #if LCD_DEPTH > 1
rb->lcd_set_backdrop(NULL); rb->lcd_set_backdrop(NULL);
#if LCD_DEPTH >= 16 #if LCD_DEPTH >= 16