aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 23:00:17 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 23:00:17 +0000
commite7b509d9fcf5251f19cad8465b80792463932d06 (patch)
tree27e608e990e413b8ff414156d279944f693f137e /Game/Code
parentfba9a67e3718a65594dc7969dac952ce5cca99d8 (diff)
downloadusdx-e7b509d9fcf5251f19cad8465b80792463932d06.tar.gz
usdx-e7b509d9fcf5251f19cad8465b80792463932d06.tar.xz
usdx-e7b509d9fcf5251f19cad8465b80792463932d06.zip
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@603 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UIni.pas9
1 files changed, 3 insertions, 6 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index 998a1d4b..040a0cdb 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -271,15 +271,12 @@ begin
// Resolution
SetLength(IResolution, 0);
Modes := SDL_ListModes(nil, SDL_OPENGL or SDL_FULLSCREEN); // Check if there are any modes available
- 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);
- Tekst := IniFile.ReadString('Graphics', 'Screens', IScreens[0]);
-
- Log.LogStatus('SDL_ListModes Res : ' + IResolution[High(IResolution)], 'Graphics - Resolutions');
-
Inc(Modes);
- until Modes^ = nil;
+ end;
// if no modes were set, then failback to 800x600
// as per http://sourceforge.net/forum/message.php?msg_id=4544965