hedgewars/CCHandlers.inc
changeset 2633 9eb131794a6e
parent 2629 be70fd3458c0
child 2635 80d02d3e24ae
equal deleted inserted replaced
2632:0c1d3c12ded9 2633:9eb131794a6e
   598 
   598 
   599 {$IFDEF DEBUGFILE}
   599 {$IFDEF DEBUGFILE}
   600 AddFileLog('Prepare to change video parameters...');
   600 AddFileLog('Prepare to change video parameters...');
   601 {$ENDIF}
   601 {$ENDIF}
   602 
   602 
   603 {$IFNDEF IPHONEOS}
   603 {$IFDEF IPHONEOS}
   604 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
       
   605 {$ELSE}
       
   606 // remove these if they cause incompatibility
       
   607 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
   604 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0);
   608 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
   605 SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
   609 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
   606 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
       
   607 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
       
   608 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
       
   609 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
       
   610 SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
       
   611 SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
       
   612 {$ELSE}
       
   613 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
   610 {$ENDIF}
   614 {$ENDIF}
   611 
   615 
   612 {$IFNDEF SDL13}
   616 {$IFNDEF SDL13}
   613 // this attribute is default in 1.3
   617 // this attribute is default in 1.3
   614 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
   618 SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);