hedgewars/CCHandlers.inc
changeset 1127 7e1b94a0fc1f
parent 1121 d595dc56b4f3
child 1242 4aca5f7b2504
equal deleted inserted replaced
1126:2acfe205a519 1127:7e1b94a0fc1f
   453 {$IFDEF DEBUGFILE}
   453 {$IFDEF DEBUGFILE}
   454 AddFileLog('Prepare to change video parameters...');
   454 AddFileLog('Prepare to change video parameters...');
   455 {$ENDIF}
   455 {$ENDIF}
   456 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
   456 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
   457 
   457 
   458 flags:= SDL_OPENGL or SDL_RESIZABLE;
   458 flags:= SDL_OPENGL;// or SDL_RESIZABLE;
   459 if cFullScreen then
   459 if cFullScreen then
   460 	begin
   460 	begin
   461 	flags:= flags or SDL_FULLSCREEN;
   461 	flags:= flags or SDL_FULLSCREEN;
   462 	cScreenWidth:= cInitWidth;
   462 	cScreenWidth:= cInitWidth;
   463 	cScreenHeight:= cInitHeight
   463 	cScreenHeight:= cInitHeight