Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/gfx/drivers/miyoomini/sdl_miyoomini_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ static bool sdl_miyoomini_gfx_frame(void *data, const void *frame,
if (unlikely(vid->was_in_menu)) {
sdl_miyoomini_clear_border(fb_addr, vid->video_x, vid->video_y, vid->video_w, vid->video_h);
vid->was_in_menu = false;
stOpt.eRotate = vid->rotate;
}
/* Update video mode if width/height have changed */
if (unlikely( (vid->content_width != width ) ||
Expand All @@ -951,10 +952,12 @@ static bool sdl_miyoomini_gfx_frame(void *data, const void *frame,
/* HW Blit GFX surface to Framebuffer and Flip */
GFX_UpdateRect(vid->screen, vid->video_x, vid->video_y, vid->video_w, vid->video_h);
} else {
if (!vid->was_in_menu) {
vid->was_in_menu = true;
stOpt.eRotate = E_MI_GFX_ROTATE_180;
}
SDL_SoftStretch(vid->menuscreen_rgui, NULL, vid->menuscreen, rgui_menu_stretch ? NULL : &rgui_menu_dest_rect);
stOpt.eRotate = E_MI_GFX_ROTATE_180;
GFX_Flip(vid->menuscreen);
stOpt.eRotate = vid->rotate;
}
return true;
}
Expand Down