diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-07-05 18:07:58 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-07-05 18:07:58 +0000 |
commit | f1034e00f6196c810466da66a9a24bf2e5f61272 (patch) | |
tree | 2e49089d421a75030c3a8e30503907a7f20eb511 /apps/recorder | |
parent | 802743a061e01150db544c8e072cd794731b18a7 (diff) | |
download | rockbox-f1034e00f6196c810466da66a9a24bf2e5f61272.tar.gz rockbox-f1034e00f6196c810466da66a9a24bf2e5f61272.zip |
FS#10406 - split the statusbar setting into one for each display, and allow the bar to be at the top or bottom of the display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21665 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 393bd356b8..d7ab9c795c 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -1112,14 +1112,12 @@ bool recording_screen(bool no_source) | |||
1112 | else | 1112 | else |
1113 | compact_view[i] = false; | 1113 | compact_view[i] = false; |
1114 | } | 1114 | } |
1115 | vp_list[i] = *v; /* get a copy now so it can be sized more easily */ | ||
1115 | v->height = (font_get(v->font)->height)*(compact_view[i] ? 3 : 4); | 1116 | v->height = (font_get(v->font)->height)*(compact_view[i] ? 3 : 4); |
1116 | 1117 | ||
1117 | /* list section, rest of the screen */ | 1118 | /* list section, rest of the screen */ |
1118 | v = &vp_list[i]; | 1119 | vp_list[i].y = vp_top[i].y + vp_top[i].height; |
1119 | viewport_set_defaults(v, i); | 1120 | vp_list[i].height -= vp_list[i].y; |
1120 | v->font = vp_top[i].font; | ||
1121 | v->y = vp_top[i].y + vp_top[i].height; | ||
1122 | v->height = screens[i].lcdheight - v->y; /* the rest */ | ||
1123 | screens[i].set_viewport(&vp_top[i]); /* req for next calls */ | 1121 | screens[i].set_viewport(&vp_top[i]); /* req for next calls */ |
1124 | 1122 | ||
1125 | screens[i].getstringsize("W", &w, &h); | 1123 | screens[i].getstringsize("W", &w, &h); |