diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-06-28 20:45:21 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-06-28 20:45:21 +0000 |
| commit | 205f3df7816a1eea9c812ea285d74a4f8ecfad2a (patch) | |
| tree | 356be7b807a4407b7e243ec57da4d5068fe09ab1 /apps/plugins/star.c | |
| parent | 3d240f1e2a34e616c2aba22b58ea78de7f277127 (diff) | |
| download | rockbox-205f3df7816a1eea9c812ea285d74a4f8ecfad2a.zip rockbox-205f3df7816a1eea9c812ea285d74a4f8ecfad2a.tar.gz rockbox-205f3df7816a1eea9c812ea285d74a4f8ecfad2a.tar.bz2 rockbox-205f3df7816a1eea9c812ea285d74a4f8ecfad2a.tar.xz | |
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
Diffstat (limited to 'apps/plugins/star.c')
| -rw-r--r-- | apps/plugins/star.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index b419d96..23bfd3c 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -995,7 +995,7 @@ static int star_menu(void) rb->viewport_set_defaults(&vp[selection], selection); /* we are hiding the statusbar so fix the height also */ vp[selection].y = 0; - vp[selection].height = rb->screens[selection]->height; + vp[selection].height = rb->screens[selection]->lcdheight; #if LCD_DEPTH > 1 if (rb->screens[selection]->depth > 1) { |