Lines Matching refs:BitsPerPixel
248 vformat.BitsPerPixel,
263 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel);
389 format.BitsPerPixel = SDL_closest_depths[table][b];
426 static int SDL_GetVideoMode (int *w, int *h, int *BitsPerPixel, Uint32 flags)
435 if ( *BitsPerPixel < 8 || *BitsPerPixel > 32 ) {
445 native_bpp = SDL_VideoModeOK(*w, *h, *BitsPerPixel, flags);
446 if ( native_bpp == *BitsPerPixel ) {
450 *BitsPerPixel = native_bpp;
457 table = ((*BitsPerPixel+7)/8)-1;
458 SDL_closest_depths[table][0] = *BitsPerPixel;
459 SDL_closest_depths[table][7] = SDL_VideoSurface->format->BitsPerPixel;
463 format.BitsPerPixel = SDL_closest_depths[table][b];
486 *BitsPerPixel = SDL_closest_depths[table][b];
517 if ( depth == (SDL_VideoSurface->format)->BitsPerPixel ) {
534 if ( depth == (SDL_VideoSurface->format)->BitsPerPixel ) {
601 bpp = SDL_VideoSurface->format->BitsPerPixel;
702 SDL_DitherColors(vf->palette->colors, vf->BitsPerPixel);
723 mode->w, mode->h, mode->format->BitsPerPixel, mode->offset);
878 (SDL_VideoSurface->format->BitsPerPixel != bpp)) ||
1266 palsize = 1 << screen->format->BitsPerPixel;