summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/icons.h11
-rw-r--r--apps/recorder/peakmeter.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h
index 66de36bcd0..249453a943 100644
--- a/apps/recorder/icons.h
+++ b/apps/recorder/icons.h
@@ -103,14 +103,15 @@ extern const unsigned char bitmap_icon_disk[];
103 103
104#define STATUSBAR_X_POS 0 104#define STATUSBAR_X_POS 0
105#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */ 105#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */
106#define STATUSBAR_HEIGHT 8 106#define STATUSBAR_HEIGHT SYSFONT_HEIGHT
107#define STATUSBAR_WIDTH LCD_WIDTH 107#define STATUSBAR_WIDTH LCD_WIDTH
108#define SB_ICON_HEIGHT 8 /* ... for now */
108#define ICON_BATTERY_X_POS 0 109#define ICON_BATTERY_X_POS 0
109#define ICON_BATTERY_WIDTH 18 110#define ICON_BATTERY_WIDTH (2+(2*SYSFONT_WIDTH))
110#define ICON_PLUG_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+2 111#define ICON_PLUG_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+2
111#define ICON_PLUG_WIDTH 7 112#define ICON_PLUG_WIDTH 7
112#define ICON_VOLUME_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+2+2 113#define ICON_VOLUME_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+2+2
113#define ICON_VOLUME_WIDTH 16 114#define ICON_VOLUME_WIDTH (2+(2*SYSFONT_WIDTH))
114#define ICON_PLAY_STATE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+2+2+2 115#define ICON_PLAY_STATE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+2+2+2
115#define ICON_PLAY_STATE_WIDTH 7 116#define ICON_PLAY_STATE_WIDTH 7
116#define ICON_PLAY_MODE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+2+2+2+2 117#define ICON_PLAY_MODE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+2+2+2+2
@@ -123,5 +124,9 @@ extern const unsigned char bitmap_icon_disk[];
123#define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH 124#define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH
124#define TIME_X_END STATUSBAR_WIDTH-1 125#define TIME_X_END STATUSBAR_WIDTH-1
125 126
127#if defined(SYSFONT_HEIGHT) && (SB_ICON_HEIGHT > STATUSBAR_HEIGHT)
128#error "Icons larger than statusbar!"
129#endif
130
126#endif /* PLUGIN */ 131#endif /* PLUGIN */
127#endif /* _ICONS_H_ */ 132#endif /* _ICONS_H_ */
diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c
index c9c0254f2a..e8e5db551a 100644
--- a/apps/recorder/peakmeter.c
+++ b/apps/recorder/peakmeter.c
@@ -1311,7 +1311,7 @@ void peak_meter_draw_trig(int xpos[], int ypos[],
1311 HORIZONTAL); 1311 HORIZONTAL);
1312 1312
1313 screens[i].mono_bitmap(bitmap_icons_7x8[icon], ixpos[i], ypos[i], 1313 screens[i].mono_bitmap(bitmap_icons_7x8[icon], ixpos[i], ypos[i],
1314 ICON_PLAY_STATE_WIDTH, STATUSBAR_HEIGHT); 1314 ICON_PLAY_STATE_WIDTH, SB_ICON_HEIGHT);
1315 } 1315 }
1316} 1316}
1317#endif 1317#endif