forked from len0rd/rockbox
Remove a viewport ambiguity by changing the screens width/heigth members into lcdwidth/lcdheight. Normal usercode should always use getwidth()/getheigth() as that returns the viewport width/height. Fixes issues that would have appeared in many places when introducing viewports with sizes != lcd sizes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17857 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3d240f1e2a
commit
205f3df781
26 changed files with 165 additions and 149 deletions
|
@ -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->width / MAZE_WIDTH;
|
||||
wy = (int) display->height / MAZE_HEIGHT;
|
||||
wx = (int) display->getwidth() / MAZE_WIDTH;
|
||||
wy = (int) display->getheight() / MAZE_HEIGHT;
|
||||
|
||||
if(wx>3){
|
||||
point_width=wx-3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue