Home | History | Annotate | Download | only in cybergfx

Lines Matching refs:bpp

47 static SDL_Surface *CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags);
256 Uint32 MakeBitMask(_THIS,int type,int format,int *bpp)
260 if(this->hidden->depth==*bpp)
381 switch(*bpp)
410 *bpp=24;
538 vformat->BitsPerPixel = this->hidden->visuals[i].depth; /* this->hidden->visuals[i].bpp; */
665 int w, int h, int bpp, Uint32 flags)
696 if ( this->hidden->visuals[i].depth == bpp ) /* era .depth */
727 if(bpp!=this->hidden->depth)
729 bpp=this->hidden->depth;
730 D(bug("Accel forces bpp to be equal (%ld)\n",bpp));
734 D(bug("BEFORE screen allocation: bpp:%ld (real:%ld)\n",bpp,this->hidden->depth));
736 /* With this call if needed I'll revert the wanted bpp to a bpp best suited for the display, actually occurs
740 if ( ! SDL_ReallocFormat(screen, bpp,
741 MakeBitMask(this,0,form,&bpp), MakeBitMask(this,1,form,&bpp), MakeBitMask(this,2,form,&bpp), 0) )
744 D(bug("AFTER screen allocation: bpp:%ld (real:%ld)\n",bpp,this->hidden->depth));
754 if ( GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_PIXFMT)==PIXFMT_LUT8 || bpp==8 ) {
760 if(bpp==8)
777 if(bpp==8)
901 int width, int height, int bpp, Uint32 flags)
927 bpp=this->hidden->depth=GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_DEPTH);
930 if ( this->hidden->visuals[i].depth == bpp ) /* era .depth */
953 (this->hidden && this->hidden->depth!=bpp))
967 CYBRBIDTG_Depth,bpp,
979 SA_Depth,bpp,
1047 if(GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_DEPTH)==bpp)
1051 bpp=this->hidden->depth=GetCyberMapAttr(SDL_Display->RastPort.BitMap,CYBRMATTR_DEPTH);
1055 if ( this->hidden->visuals[i].depth == bpp ) /* era .depth */
1070 && bpp == current->format->BitsPerPixel && !needcreate) {
1076 if (CGX_CreateWindow(this,current,width,height,bpp,flags) < 0) {