Lines Matching refs:vformat
51 static int RISCOS_VideoInit(_THIS, SDL_PixelFormat *vformat);
162 int RISCOS_VideoInit(_THIS, SDL_PixelFormat *vformat)
181 vformat->BitsPerPixel = (1 << vals[0]);
188 if (vformat->BitsPerPixel < 8) vformat->BitsPerPixel = 8;
191 switch (vformat->BitsPerPixel)
195 vformat->Bmask = 0x00007c00;
196 vformat->Gmask = 0x000003e0;
197 vformat->Rmask = 0x0000001f;
198 vformat->BitsPerPixel = 16; /* SDL wants actual number of bits used */
199 vformat->BytesPerPixel = 2;
204 vformat->Bmask = 0x00ff0000;
205 vformat->Gmask = 0x0000ff00;
206 vformat->Rmask = 0x000000ff;
207 vformat->BytesPerPixel = 4;
211 vformat->Bmask = 0;
212 vformat->Gmask = 0;
213 vformat->Rmask = 0;
214 vformat->BytesPerPixel = 1;