Gui: define status bar workarea, remove unused icon. (#841)

* Gui: define status bar workarea, remove unused icon.

* Format Sources
This commit is contained in:
あく 2021-11-24 21:19:34 +03:00 committed by GitHub
parent 9b8a139e2b
commit 2db5eee03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,8 @@ void gui_redraw_status_bar(Gui* gui) {
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);
}
@ -125,7 +126,7 @@ void gui_redraw_status_bar(Gui* gui) {
canvas_set_color(gui->canvas, ColorBlack);
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);
x += (width + 2);

View File

@ -24,6 +24,7 @@
#define GUI_STATUS_BAR_Y 0
#define GUI_STATUS_BAR_WIDTH GUI_DISPLAY_WIDTH
#define GUI_STATUS_BAR_HEIGHT 13
#define GUI_STATUS_BAR_WORKAREA_HEIGHT 8
#define GUI_WINDOW_X 0
#define GUI_WINDOW_Y GUI_STATUS_BAR_HEIGHT

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 B