hedgewars/CCHandlers.inc
changeset 3405 8fdb08497bf1
parent 3396 e5b3e5f2818e
child 3407 dcc129c4352e
equal deleted inserted replaced
3404:d445798e5fe2 3405:8fdb08497bf1
   663         flags:= flags or SDL_FULLSCREEN;
   663         flags:= flags or SDL_FULLSCREEN;
   664         cScreenWidth:= cInitWidth;
   664         cScreenWidth:= cInitWidth;
   665         cScreenHeight:= cInitHeight
   665         cScreenHeight:= cInitHeight
   666     end;
   666     end;
   667 
   667 
   668     // load window icon
       
   669 {$IFDEF SDL_IMAGE_NEWER}
   668 {$IFDEF SDL_IMAGE_NEWER}
   670     WriteToConsole('Init SDL_image... ');
   669     WriteToConsole('Init SDL_image... ');
   671     SDLTry(IMG_Init(IMG_INIT_PNG) <> 0, true);
   670     SDLTry(IMG_Init(IMG_INIT_PNG) <> 0, true);
   672     WriteLnToConsole(msgOK);
   671     WriteLnToConsole(msgOK);
   673 {$ENDIF}
   672 {$ENDIF}
       
   673     // load engine icon
   674 {$IFDEF DARWIN}
   674 {$IFDEF DARWIN}
   675     ico:= LoadImage(Pathz[ptGraphics] + '/hwengine_mac', ifIgnoreCaps);
   675     ico:= LoadImage(Pathz[ptGraphics] + '/hwengine_mac', ifIgnoreCaps);
   676 {$ELSE}
   676 {$ELSE}
   677     ico:= LoadImage(Pathz[ptGraphics] + '/hwengine', ifIgnoreCaps);
   677     ico:= LoadImage(Pathz[ptGraphics] + '/hwengine', ifIgnoreCaps);
   678 {$ENDIF}
   678 {$ENDIF}