IMG_ImageIO.m
changeset 550 b5bcb9cb9f6d
parent 530 181ef57f85b4
     1.1 --- a/IMG_ImageIO.m	Sun Dec 10 09:11:46 2017 -0800
     1.2 +++ b/IMG_ImageIO.m	Tue Dec 12 22:18:18 2017 -0800
     1.3 @@ -229,7 +229,7 @@
     1.4      Gmask = 0x0000FF00;
     1.5      Bmask = 0x000000FF;
     1.6  
     1.7 -    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 32, Rmask, Gmask, Bmask, Amask);
     1.8 +    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, (int)w, (int)h, 32, Rmask, Gmask, Bmask, Amask);
     1.9      if (surface)
    1.10      {
    1.11          // Sets up a context to be drawn to with surface->pixels as the area to be drawn to
    1.12 @@ -306,7 +306,7 @@
    1.13      }
    1.14  
    1.15      CGColorSpaceGetColorTable(color_space, entries);
    1.16 -    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, bits_per_pixel, 0, 0, 0, 0);
    1.17 +    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, (int)w, (int)h, bits_per_pixel, 0, 0, 0, 0);
    1.18      if (surface) {
    1.19          uint8_t* pixels = (uint8_t*)surface->pixels;
    1.20          CGDataProviderRef provider = CGImageGetDataProvider(image_ref);