Commit 43835f62 authored by Manuel Moos's avatar Manuel Moos
Browse files

Allow to resize the game window

Implements #97
parent b7fff362
Pipeline #269956623 passed with stages
in 50 minutes and 25 seconds
......@@ -765,7 +765,7 @@ static bool lowlevel_sr_InitDisplay(){
sr_SetGLAttributes( singleCD_R, singleCD_G, singleCD_B, zDepth );
int attrib=SDL_WINDOW_OPENGL;
int attrib=SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE;
if(highDPI)
{
......@@ -946,7 +946,12 @@ static bool lowlevel_sr_InitDisplay(){
{
SDL_SetWindowSize(sr_screen, sr_screenWidthInPoints, sr_screenHeightInPoints);
SDL_SetWindowPosition(sr_screen, defaultX, defaultY);
#if SDL_VERSION_ATLEAST(2, 0, 5)
// we're already setting the relevant flag on creation, but maybe it gets lost in fullscreen mode
SDL_SetWindowResizable(sr_screen, SDL_TRUE);
#endif
SDL_SetRelativeMouseMode(SDL_FALSE);
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment