Skip to content

Commit

Permalink
sdl: Limit minimum window size (shadps4-emu#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoquang2708 authored and Younes-Bel committed Dec 29, 2024
1 parent 028cfc4 commit ff2aab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sdl_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_
UNREACHABLE_MSG("Failed to create window handle: {}", SDL_GetError());
}

SDL_SetWindowMinimumSize(window, 640, 360);
SDL_SetWindowFullscreen(window, Config::isFullscreenMode());

SDL_InitSubSystem(SDL_INIT_GAMEPAD);
Expand Down

0 comments on commit ff2aab5

Please sign in to comment.