--- a/hedgewars/CCHandlers.inc Sat Jul 11 13:47:57 2009 +0000
+++ b/hedgewars/CCHandlers.inc Sat Jul 11 13:59:27 2009 +0000
@@ -561,7 +561,14 @@
{$IFDEF DEBUGFILE}
AddFileLog('Prepare to change video parameters...');
{$ENDIF}
+
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+{$IFDEF IPHONEOS}
+//remove these if they cause incompatibility
+SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
+SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
+SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
+{$ENDIF}
flags:= SDL_OPENGL;// or SDL_RESIZABLE;
if cFullScreen then
--- a/hedgewars/SDLh.pas Sat Jul 11 13:47:57 2009 +0000
+++ b/hedgewars/SDLh.pas Sat Jul 11 13:59:27 2009 +0000
@@ -219,26 +219,26 @@
state: Byte;
keysym: TSDL_KeySym;
end;
- TSDL_GLattr = (
- SDL_GL_RED_SIZE,
- SDL_GL_GREEN_SIZE,
- SDL_GL_BLUE_SIZE,
- SDL_GL_ALPHA_SIZE,
- SDL_GL_BUFFER_SIZE,
- SDL_GL_DOUBLEBUFFER,
- SDL_GL_DEPTH_SIZE,
- SDL_GL_STENCIL_SIZE,
- SDL_GL_ACCUM_RED_SIZE,
- SDL_GL_ACCUM_GREEN_SIZE,
- SDL_GL_ACCUM_BLUE_SIZE,
- SDL_GL_ACCUM_ALPHA_SIZE,
- SDL_GL_STEREO,
- SDL_GL_MULTISAMPLEBUFFERS,
- SDL_GL_MULTISAMPLESAMPLES,
- SDL_GL_ACCELERATED_VISUAL,
- SDL_GL_RETAINED_BACKING,
- SDL_GL_CONTEXT_MAJOR_VERSION,
- SDL_GL_CONTEXT_MINOR_VERSION );
+
+ TSDL_GLattr = ( SDL_GL_RED_SIZE,
+ SDL_GL_GREEN_SIZE,
+ SDL_GL_BLUE_SIZE,
+ SDL_GL_ALPHA_SIZE,
+ SDL_GL_BUFFER_SIZE,
+ SDL_GL_DOUBLEBUFFER,
+ SDL_GL_DEPTH_SIZE,
+ SDL_GL_STENCIL_SIZE,
+ SDL_GL_ACCUM_RED_SIZE,
+ SDL_GL_ACCUM_GREEN_SIZE,
+ SDL_GL_ACCUM_BLUE_SIZE,
+ SDL_GL_ACCUM_ALPHA_SIZE,
+ SDL_GL_STEREO,
+ SDL_GL_MULTISAMPLEBUFFERS,
+ SDL_GL_MULTISAMPLESAMPLES,
+ SDL_GL_ACCELERATED_VISUAL,
+ SDL_GL_RETAINED_BACKING,
+ SDL_GL_CONTEXT_MAJOR_VERSION,
+ SDL_GL_CONTEXT_MINOR_VERSION );
{$IFDEF SDL13}
TSDL_MouseMotionEvent = record