hedgewars/CCHandlers.inc
changeset 2618 23ee71bd049b
parent 2617 ef0d93cd61b2
child 2624 0c3d5549912e
equal deleted inserted replaced
2617:ef0d93cd61b2 2618:23ee71bd049b
   597 
   597 
   598 {$IFDEF DEBUGFILE}
   598 {$IFDEF DEBUGFILE}
   599 AddFileLog('Prepare to change video parameters...');
   599 AddFileLog('Prepare to change video parameters...');
   600 {$ENDIF}
   600 {$ENDIF}
   601 
   601 
       
   602 {$IFNDEF IPHONEOS}
   602 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
   603 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
   603 {$IFDEF IPHONEOS}
   604 {$ELSE}
   604 // remove these if they cause incompatibility
   605 // remove these if they cause incompatibility
   605 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
   606 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
   606 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
   607 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
   607 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
   608 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
   608 {$ELSE}
   609 {$ENDIF}
       
   610 
       
   611 {$IFNDEF SDL13}
   609 // this attribute is default in 1.3
   612 // this attribute is default in 1.3
   610 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
   613 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
   611 {$ENDIF}
   614 {$ENDIF}
   612 
   615 
   613 flags:= SDL_OPENGL;// or SDL_RESIZABLE;
   616 flags:= SDL_OPENGL;// or SDL_RESIZABLE;