Skip to content

Commit

Permalink
Gui: reset canvas orientation and frame when entering direct draw mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZlo13 authored Feb 28, 2024
1 parent 7fc4ba7 commit 18ea237
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions applications/services/gui/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 18ea237

Please sign in to comment.