aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UIni.pas
diff options
context:
space:
mode:
authormogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 22:42:20 +0000
committermogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-11-11 22:42:20 +0000
commit20642715b0cb09503a6ccb864ddb97b00628ca86 (patch)
treeb8ba8075216d89fd707b155199485f7947239166 /Game/Code/Classes/UIni.pas
parent26880465f723cf6b1cc18ce50e4f7b063b17fdad (diff)
downloadusdx-20642715b0cb09503a6ccb864ddb97b00628ca86.tar.gz
usdx-20642715b0cb09503a6ccb864ddb97b00628ca86.tar.xz
usdx-20642715b0cb09503a6ccb864ddb97b00628ca86.zip
Thanks to Linnex all the Wine bugs should be gone now, I can't test that myself so give some comments please. Added his suggestions into the source which fix the "on startup" bug (sdl_listmodes), "font problem" (pf24bit), "sql db new score" (exceptions are caught)..
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1@602 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UIni.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas
index 82bae011..5297e7e1 100644
--- a/Game/Code/Classes/UIni.pas
+++ b/Game/Code/Classes/UIni.pas
@@ -251,12 +251,14 @@ 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
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
// as per http://sourceforge.net/forum/message.php?msg_id=4544965
// THANKS : linnex at users.sourceforge.net