Gui: reset canvas orientation and frame when entering direct draw mode (#3488)

This commit is contained in:
Sergei Gavrilov 2024-02-29 08:09:55 +10:00 committed by GitHub
parent 7fc4ba7c1c
commit 18ea2371a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);