allow fullscreen resolution selection (but still leaves in the auto max for commodity)
authorkoda
Sat, 03 Sep 2011 12:35:49 +0200
changeset 5745 71e69623be39
parent 5744 746de1d303d2
child 5746 fbc52bb92cad
allow fullscreen resolution selection (but still leaves in the auto max for commodity)
QTfrontend/pageoptions.cpp
hedgewars/SDLh.pas
--- a/QTfrontend/pageoptions.cpp	Fri Sep 02 19:06:05 2011 -0400
+++ b/QTfrontend/pageoptions.cpp	Sat Sep 03 12:35:49 2011 +0200
@@ -429,7 +429,6 @@
     else
         this->CBResolution->setCurrentIndex(previousResolutionIndex);
     previousResolutionIndex = tmp;
-    this->CBResolution->setEnabled(!this->CBFullscreen->isChecked());
 }
 
 void PageOptions::trimNetNick()
--- a/hedgewars/SDLh.pas	Fri Sep 02 19:06:05 2011 -0400
+++ b/hedgewars/SDLh.pas	Sat Sep 03 12:35:49 2011 +0200
@@ -618,6 +618,8 @@
 {$ENDIF}
         end;
 
+    TSDL_EventFilter = function( event : PSDL_Event ): Integer; cdecl;
+
     PByteArray = ^TByteArray;
     TByteArray = array[0..65535] of Byte;
     PLongWordArray = ^TLongWordArray;
@@ -811,6 +813,7 @@
 procedure SDL_PumpEvents; cdecl; external SDLLibName;
 function  SDL_PollEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
 function  SDL_WaitEvent(event: PSDL_Event): LongInt; cdecl; external SDLLibName;
+procedure SDL_SetEventFilter( filter : TSDL_EventFilter ); cdecl; external SDLLibName;
 
 function  SDL_ShowCursor(toggle: LongInt): LongInt; cdecl; external SDLLibName;