Lines Matching refs:bpp
46 static SDL_Surface *ph_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
320 static const struct ColourMasks* ph_GetColourMasks(int bpp)
331 switch (bpp)
448 static SDL_Surface* ph_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags)
458 if (((current->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN) && (ph_GetVideoMode(width, height, bpp)==0))
467 mask = ph_GetColourMasks(bpp);
470 SDL_ReallocFormat(current, mask->bpp, mask->red, mask->green, mask->blue, 0);
474 SDL_SetError("ph_SetVideoMode(): desired bpp is not supported by photon !\n");
492 if (bpp==8)
508 if (desktopbpp!=bpp)
515 if (bpp==8)
558 visualbpp=bpp;