From 205f3df7816a1eea9c812ea285d74a4f8ecfad2a Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 28 Jun 2008 20:45:21 +0000 Subject: 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 --- apps/menus/recording_menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/menus/recording_menu.c') diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index 6342bccde7..ae58472942 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c @@ -448,7 +448,7 @@ int rectrigger(void) int old_stop_gap = global_settings.rec_stop_gap; int old_trigger_mode = global_settings.rec_trigger_mode; int old_trigger_type = global_settings.rec_trigger_type; - + FOR_NB_SCREENS(i) { screens[i].clear_display(); @@ -457,11 +457,11 @@ int rectrigger(void) vp[i].height -= SYSFONT_HEIGHT*2; trig_xpos[i] = 0; trig_ypos[i] = vp[i].y + vp[i].height; - pm_y[i] = screens[i].height - SYSFONT_HEIGHT; - trig_width[i] = screens[i].width; + pm_y[i] = screens[i].getheight() - SYSFONT_HEIGHT; + trig_width[i] = screens[i].getwidth(); } /* TODO: what to do if there is < 4 lines on the screen? */ - + settings[TRIGGER_MODE] = find_setting(&global_settings.rec_trigger_mode, NULL); settings[TRIGGER_TYPE] = -- cgit v1.2.3