aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-04 07:44:50 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-07-04 07:44:50 +0000
commit5efebb73b300b79bc9e229f1f165195effa5b310 (patch)
tree51fb57bdc4af2ac7fdc89b4b4ca62612084aacd7 /Game
parent0e20880ebb0395abbf3c38c4e2bc7c7b08aff175 (diff)
downloadusdx-5efebb73b300b79bc9e229f1f165195effa5b310.tar.gz
usdx-5efebb73b300b79bc9e229f1f165195effa5b310.tar.xz
usdx-5efebb73b300b79bc9e229f1f165195effa5b310.zip
disabled screen-mode change after leaving the graphics options screen as it does not work on windows/macosx.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1166 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/Screens/UScreenOptionsGraphics.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenOptionsGraphics.pas b/Game/Code/Screens/UScreenOptionsGraphics.pas
index d88753f2..9d8ee78a 100644
--- a/Game/Code/Screens/UScreenOptionsGraphics.pas
+++ b/Game/Code/Screens/UScreenOptionsGraphics.pas
@@ -50,7 +50,12 @@ begin
if SelInteraction = 5 then begin
Ini.Save;
AudioPlayback.PlaySound(SoundLib.Back);
- Reinitialize3D();
+ // FIXME: changing the video mode does not work this way in windows
+ // and MacOSX as all textures will be invalidated through this.
+ // See the ALT+TAB code too.
+ {$IFDEF Linux}
+ Reinitialize3D();
+ {$ENDIF}
FadeTo(@ScreenOptions);
end;
end;