Gui: define status bar workarea, remove unused icon. (#841)
* Gui: define status bar workarea, remove unused icon. * Format Sources
This commit is contained in:
parent
9b8a139e2b
commit
2db5eee03b
@ -86,7 +86,8 @@ void gui_redraw_status_bar(Gui* gui) {
|
|||||||
|
|
||||||
canvas_set_color(gui->canvas, ColorBlack);
|
canvas_set_color(gui->canvas, ColorBlack);
|
||||||
|
|
||||||
canvas_frame_set(gui->canvas, x, GUI_STATUS_BAR_Y + 2, width, GUI_STATUS_BAR_HEIGHT);
|
canvas_frame_set(
|
||||||
|
gui->canvas, x, GUI_STATUS_BAR_Y + 2, width, GUI_STATUS_BAR_WORKAREA_HEIGHT);
|
||||||
|
|
||||||
view_port_draw(view_port, gui->canvas);
|
view_port_draw(view_port, gui->canvas);
|
||||||
}
|
}
|
||||||
@ -125,7 +126,7 @@ void gui_redraw_status_bar(Gui* gui) {
|
|||||||
canvas_set_color(gui->canvas, ColorBlack);
|
canvas_set_color(gui->canvas, ColorBlack);
|
||||||
|
|
||||||
canvas_frame_set(
|
canvas_frame_set(
|
||||||
gui->canvas, x + 3, GUI_STATUS_BAR_Y + 2, width, GUI_STATUS_BAR_HEIGHT);
|
gui->canvas, x + 3, GUI_STATUS_BAR_Y + 2, width, GUI_STATUS_BAR_WORKAREA_HEIGHT);
|
||||||
view_port_draw(view_port, gui->canvas);
|
view_port_draw(view_port, gui->canvas);
|
||||||
|
|
||||||
x += (width + 2);
|
x += (width + 2);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#define GUI_STATUS_BAR_Y 0
|
#define GUI_STATUS_BAR_Y 0
|
||||||
#define GUI_STATUS_BAR_WIDTH GUI_DISPLAY_WIDTH
|
#define GUI_STATUS_BAR_WIDTH GUI_DISPLAY_WIDTH
|
||||||
#define GUI_STATUS_BAR_HEIGHT 13
|
#define GUI_STATUS_BAR_HEIGHT 13
|
||||||
|
#define GUI_STATUS_BAR_WORKAREA_HEIGHT 8
|
||||||
|
|
||||||
#define GUI_WINDOW_X 0
|
#define GUI_WINDOW_X 0
|
||||||
#define GUI_WINDOW_Y GUI_STATUS_BAR_HEIGHT
|
#define GUI_WINDOW_Y GUI_STATUS_BAR_HEIGHT
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 374 B |
Loading…
Reference in New Issue
Block a user