aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 23:00:34 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 23:00:34 +0000
commit47aa66870ed6815c6564db008678fad866f398a8 (patch)
tree0d94d1f5fa815909cb0c47ac46f8f31a3f8b6ad6 /Game/Code
parent20642715b0cb09503a6ccb864ddb97b00628ca86 (diff)
downloadusdx-47aa66870ed6815c6564db008678fad866f398a8.tar.gz
usdx-47aa66870ed6815c6564db008678fad866f398a8.tar.xz
usdx-47aa66870ed6815c6564db008678fad866f398a8.zip
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@604 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UIni.pas7
1 files changed, 3 insertions, 4 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index 5297e7e1..3a77bda4 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -1,4 +1,4 @@
-unit UIni;
+gunit UIni;
interface
uses IniFiles, ULog, SysUtils;
@@ -251,12 +251,11 @@ begin
// Resolution
SetLength(IResolution, 0);
Modes := SDL_ListModes(nil, SDL_OPENGL or SDL_FULLSCREEN); // Check if there are any modes available
- if(Assigned(Modes)) then //this should solve the biggest wine problem | THANKS Linnex (11.11.07)
- repeat
+ 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);
Inc(Modes);
- until Modes^ = nil;
end;
// if no modes were set, then failback to 800x600