diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-09-05 15:26:08 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-09-05 15:26:08 +0000 |
commit | b73d02583e3bab78ee70e2d7af311553b8bbdea2 (patch) | |
tree | dae16bcaae51f1e72ae4a34a827063847d68a9c4 /src | |
parent | 4ae2434da8aafa5c92ebc4c0db99557a11789ff0 (diff) | |
download | usdx-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.pas | 3 |
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: |