src/SDL_compat.c
changeset 2240 eebaa05f8bd9
parent 2228 bb67fd5ccfdb
child 2266 e61ad15a205f
equal deleted inserted replaced
2239:31835fd24b2b 2240:eebaa05f8bd9
   455             if (desktop_format) {
   455             if (desktop_format) {
   456                 desired_format = desktop_format;
   456                 desired_format = desktop_format;
   457             } else {
   457             } else {
   458                 desired_format = SDL_PIXELFORMAT_RGB888;
   458                 desired_format = SDL_PIXELFORMAT_RGB888;
   459             }
   459             }
       
   460             bpp = SDL_BITSPERPIXEL(desired_format);
   460             break;
   461             break;
   461         case 8:
   462         case 8:
   462             desired_format = SDL_PIXELFORMAT_INDEX8;
   463             desired_format = SDL_PIXELFORMAT_INDEX8;
   463             break;
   464             break;
   464         case 15:
   465         case 15: