aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-09-05 15:26:08 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-09-05 15:26:08 +0000
commitb73d02583e3bab78ee70e2d7af311553b8bbdea2 (patch)
treedae16bcaae51f1e72ae4a34a827063847d68a9c4 /src
parent4ae2434da8aafa5c92ebc4c0db99557a11789ff0 (diff)
downloadusdx-b73d02583e3bab78ee70e2d7af311553b8bbdea2.tar.gz
usdx-b73d02583e3bab78ee70e2d7af311553b8bbdea2.tar.xz
usdx-b73d02583e3bab78ee70e2d7af311553b8bbdea2.zip
fix resize-bug in SDL < 1.2.14
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2631 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/base/UMain.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/UMain.pas b/src/base/UMain.pas
index 174ef162..14a543d1 100644
--- a/src/base/UMain.pas
+++ b/src/base/UMain.pas
@@ -489,6 +489,9 @@ begin
SDL_SetVideoMode(ScreenW, ScreenH, (Ini.Depth+1) * 16, SDL_OPENGL or SDL_FULLSCREEN)
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: