aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-19 00:29:54 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-19 00:29:54 +0000
commit318b273351e334c61ebf114508044043ee96cb35 (patch)
tree32dd213eb4adf56f90a82931cc09b17ac292ec70 /Game/Code/Classes
parent54cd148715b11828370b2628bfe58200f941d756 (diff)
downloadusdx-318b273351e334c61ebf114508044043ee96cb35.tar.gz
usdx-318b273351e334c61ebf114508044043ee96cb35.tar.xz
usdx-318b273351e334c61ebf114508044043ee96cb35.zip
fixed bug in UIni ( on linux at least )
todo with SDL Initialization. Modifed Theme selection screen, so ALL theme options are runtime changable. ( Without restart ) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@610 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UIni.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index 040a0cdb..ef135e65 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -270,8 +270,9 @@ begin
// Resolution
SetLength(IResolution, 0);
+ Modes^ := nil;
Modes := SDL_ListModes(nil, SDL_OPENGL or SDL_FULLSCREEN); // Check if there are any modes available
- while Assigned(Modes) do //this should solve the biggest wine problem | THANKS Linnex (11.11.07)
+ while assigned( Modes^ ) do //this should solve the biggest wine problem | THANKS Linnex (11.11.07)
begin
SetLength(IResolution, Length(IResolution) + 1);
IResolution[High(IResolution)] := IntToStr(Modes^.w) + 'x' + IntToStr(Modes^.h);