Lines Matching refs:vformat
92 static int DIB_VideoInit(_THIS, SDL_PixelFormat *vformat);
322 int DIB_VideoInit(_THIS, SDL_PixelFormat *vformat)
340 vformat->BitsPerPixel = DIB_SussScreenDepth();
341 switch (vformat->BitsPerPixel) {
343 vformat->Rmask = 0x00007c00;
344 vformat->Gmask = 0x000003e0;
345 vformat->Bmask = 0x0000001f;
346 vformat->BitsPerPixel = 16;
349 vformat->Rmask = 0x0000f800;
350 vformat->Gmask = 0x000007e0;
351 vformat->Bmask = 0x0000001f;
356 vformat->Rmask = 0x00ff0000;
357 vformat->Gmask = 0x0000ff00;
358 vformat->Bmask = 0x000000ff;
400 // We use only vformat->BitsPerPixel that allow SDL to
405 DIB_AddMode(this, vformat->BitsPerPixel,
412 if ( vformat->BitsPerPixel <= 8 ) {
415 DIB_CreatePalette(this, vformat->BitsPerPixel);