src/video/quartz/SDL_QuartzVideo.m
changeset 768 de1b2c3063b9
parent 761 c5b2b6d2d1fe
child 779 68c8da837fc0
equal deleted inserted replaced
767:d9e79e31a7b7 768:de1b2c3063b9
  1363             if (resize_icon == NULL) {
  1363             if (resize_icon == NULL) {
  1364             
  1364             
  1365                 SDL_RWops *rw;
  1365                 SDL_RWops *rw;
  1366                 SDL_Surface *tmp;
  1366                 SDL_Surface *tmp;
  1367                 
  1367                 
  1368                 rw = SDL_RWFromMem (QZ_ResizeIcon, sizeof(QZ_ResizeIcon));
  1368                 rw = SDL_RWFromConstMem (QZ_ResizeIcon, sizeof(QZ_ResizeIcon));
  1369                 tmp = SDL_LoadBMP_RW (rw, SDL_TRUE);
  1369                 tmp = SDL_LoadBMP_RW (rw, SDL_TRUE);
  1370                                                                 
  1370                                                                 
  1371                 resize_icon = SDL_ConvertSurface (tmp, SDL_VideoSurface->format, SDL_SRCCOLORKEY);
  1371                 resize_icon = SDL_ConvertSurface (tmp, SDL_VideoSurface->format, SDL_SRCCOLORKEY);
  1372                 SDL_SetColorKey (resize_icon, SDL_SRCCOLORKEY, 0xFFFFFF);
  1372                 SDL_SetColorKey (resize_icon, SDL_SRCCOLORKEY, 0xFFFFFF);
  1373                 
  1373