comparison src/video/dc/SDL_dcvideo.c @ 1223:ba2d708ee116

Removed some incorrect comments in the "dc" driver that survived the initial cut-and-paste from the dummy video skeleton.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Jan 2006 19:25:18 +0000
parents b8d311d90021
children c9b51268668f
comparison
equal deleted inserted replaced
1222:09c1408645df 1223:ba2d708ee116
27 27
28 #ifdef SAVE_RCSID 28 #ifdef SAVE_RCSID
29 static char rcsid = 29 static char rcsid =
30 "@(#) $Id$"; 30 "@(#) $Id$";
31 #endif 31 #endif
32
33 /* Dummy SDL video driver implementation; this is just enough to make an
34 * SDL-based application THINK it's got a working video driver, for
35 * applications that call SDL_Init(SDL_INIT_VIDEO) when they don't need it,
36 * and also for use as a collection of stubs when porting SDL to a new
37 * platform for which you haven't yet written a valid video driver.
38 *
39 * This is also a great way to determine bottlenecks: if you think that SDL
40 * is a performance problem for a given platform, enable this driver, and
41 * then see if your application runs faster without video overhead.
42 *
43 * Initial work by Ryan C. Gordon (icculus@linuxgames.com). A good portion
44 * of this was cut-and-pasted from Stephane Peter's work in the AAlib
45 * SDL video driver. Renamed to "DC" by Sam Lantinga.
46 */
47 32
48 #include <stdio.h> 33 #include <stdio.h>
49 #include <stdlib.h> 34 #include <stdlib.h>
50 #include <string.h> 35 #include <string.h>
51 36
168 }; 153 };
169 154
170 155
171 int DC_VideoInit(_THIS, SDL_PixelFormat *vformat) 156 int DC_VideoInit(_THIS, SDL_PixelFormat *vformat)
172 { 157 {
173 /* Determine the screen depth (use default 8-bit depth) */ 158 /* Determine the screen depth (use default 16-bit depth) */
174 /* we change this during the SDL_SetVideoMode implementation... */ 159 /* we change this during the SDL_SetVideoMode implementation... */
175 vformat->BitsPerPixel = 16; 160 vformat->BitsPerPixel = 16;
176 vformat->Rmask = 0x0000f800; 161 vformat->Rmask = 0x0000f800;
177 vformat->Gmask = 0x000007e0; 162 vformat->Gmask = 0x000007e0;
178 vformat->Bmask = 0x0000001f; 163 vformat->Bmask = 0x0000001f;