diff options
-rw-r--r-- | src/base/UMain.pas | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/base/UMain.pas b/src/base/UMain.pas index a84694ba..f0dc3d4e 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -422,15 +422,18 @@ begin // Important: Unless SDL_SetVideoMode() is called (it is not on Windows), Screen.w // and Screen.h are not valid after a resize and still contain the old size. Use // ScreenW and ScreenH instead. - {$IF Defined(Linux) or Defined(FreeBSD)} + ////// if boolean( Ini.FullScreen ) then - SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_FULLSCREEN) + begin + {$IF Defined(Linux) or Defined(FreeBSD)} + SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_FULLSCREEN); + {$ELSE} + Screen.W := ScreenW; + Screen.H := ScreenH; + {$IFEND} + end else SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_RESIZABLE); - {$ELSE} - Screen.W := ScreenW; - Screen.H := ScreenH; - {$IFEND} end; SDL_KEYDOWN: begin |