From b73d02583e3bab78ee70e2d7af311553b8bbdea2 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 5 Sep 2010 15:26:08 +0000 Subject: 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 --- src/base/UMain.pas | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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: -- cgit v1.2.3