src/video/cocoa/SDL_cocoamodes.m
changeset 9545 52560d9d0ceb
parent 9112 345a7d41dda9
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9544:520452e88618 9545:52560d9d0ceb
   191     case 32:
   191     case 32:
   192         mode->format = SDL_PIXELFORMAT_ARGB8888;
   192         mode->format = SDL_PIXELFORMAT_ARGB8888;
   193         break;
   193         break;
   194     case 8: /* We don't support palettized modes now */
   194     case 8: /* We don't support palettized modes now */
   195     default: /* Totally unrecognizable bit depth. */
   195     default: /* Totally unrecognizable bit depth. */
       
   196         SDL_free(data);
   196         return SDL_FALSE;
   197         return SDL_FALSE;
   197     }
   198     }
   198     mode->w = width;
   199     mode->w = width;
   199     mode->h = height;
   200     mode->h = height;
   200     mode->refresh_rate = refreshRate;
   201     mode->refresh_rate = refreshRate;