mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-22 12:33:11 +00:00
Gui: reset canvas orientation and frame when entering direct draw mode (#3488)
This commit is contained in:
parent
7fc4ba7c1c
commit
18ea2371a4
1 changed files with 2 additions and 0 deletions
|
@ -499,6 +499,8 @@ Canvas* gui_direct_draw_acquire(Gui* gui) {
|
|||
gui->direct_draw = true;
|
||||
gui_unlock(gui);
|
||||
|
||||
canvas_set_orientation(gui->canvas, CanvasOrientationHorizontal);
|
||||
canvas_frame_set(gui->canvas, 0, 0, GUI_DISPLAY_WIDTH, GUI_DISPLAY_HEIGHT);
|
||||
canvas_reset(gui->canvas);
|
||||
canvas_commit(gui->canvas);
|
||||
|
||||
|
|
Loading…
Reference in a new issue