Fixed GUI window size would not reset to normal after starting emulation
This commit is contained in:
parent
b2d522dcfa
commit
0bf6cfd837
1 changed files with 3 additions and 1 deletions
|
@ -303,7 +303,7 @@ void setup_cursor()
|
|||
SDL_Log("Could not load cursor bitmap: %s\n", SDL_GetError());
|
||||
return;
|
||||
}
|
||||
auto formattedSurface = SDL_ConvertSurfaceFormat(cursor_surface, SDL_PIXELFORMAT_RGBA8888, 0);
|
||||
auto* formattedSurface = SDL_ConvertSurfaceFormat(cursor_surface, SDL_PIXELFORMAT_RGBA8888, 0);
|
||||
if (formattedSurface != nullptr)
|
||||
{
|
||||
SDL_FreeSurface(cursor_surface);
|
||||
|
@ -411,6 +411,8 @@ void amiberry_gui_init()
|
|||
{
|
||||
if (rotation_angle != 0 && rotation_angle != 180)
|
||||
SDL_SetWindowSize(sdl_window, GUI_HEIGHT, GUI_WIDTH);
|
||||
else
|
||||
SDL_SetWindowSize(sdl_window, GUI_WIDTH, GUI_HEIGHT);
|
||||
}
|
||||
|
||||
// make the scaled rendering look smoother (linear scaling).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue