Skip to content

Commit

Permalink
[desktop] Avoid saving window size when fullscreen is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 9, 2023
1 parent e587735 commit a9f4185
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions platforms/desktop-shared/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,11 @@ static void frame_throttle(void)

static void save_window_size(void)
{
int width, height;
SDL_GetWindowSize(sdl_window, &width, &height);
config_emulator.window_width = width;
config_emulator.window_height = height;
if (!config_emulator.fullscreen)
{
int width, height;
SDL_GetWindowSize(sdl_window, &width, &height);
config_emulator.window_width = width;
config_emulator.window_height = height;
}
}

0 comments on commit a9f4185

Please sign in to comment.