Home | History | Annotate | Download | only in nds

Lines Matching refs:bpp

43 static SDL_Surface *NDS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
240 int width, int height, int bpp, Uint32 flags)
244 //if(width > 1024 || height > 512 || bpp > 16)
247 if(bpp >8) {
248 bpp=16;
269 if(bpp <= 8) {
270 bpp=8;
282 if(bpp < 15) bpp=15;
290 if(bpp==8)
297 if(bpp==15)
311 SDL_memset(this->hidden->buffer, 0, 1024 * 512* ((this->hidden->ndsmode==4 || this->hidden->ndsmode==5) ? 2 : 1 ) * ((bpp+7) / 8));
314 if ( ! SDL_ReallocFormat(current, bpp, Rmask, Gmask, Bmask, Amask) ) {
331 if(bpp==8)