From 5efebb73b300b79bc9e229f1f165195effa5b310 Mon Sep 17 00:00:00 2001 From: tobigun Date: Fri, 4 Jul 2008 07:44:50 +0000 Subject: 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 --- Game/Code/Screens/UScreenOptionsGraphics.pas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Game/Code') 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; -- cgit v1.2.3