comparison src/video/dummy/SDL_nullvideo.c @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 3692456e7b0f
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1337:c687f06c7473 1338:604d73db6802
33 * Initial work by Ryan C. Gordon (icculus@linuxgames.com). A good portion 33 * Initial work by Ryan C. Gordon (icculus@linuxgames.com). A good portion
34 * of this was cut-and-pasted from Stephane Peter's work in the AAlib 34 * of this was cut-and-pasted from Stephane Peter's work in the AAlib
35 * SDL video driver. Renamed to "DUMMY" by Sam Lantinga. 35 * SDL video driver. Renamed to "DUMMY" by Sam Lantinga.
36 */ 36 */
37 37
38 #include <stdio.h>
39 #include <stdlib.h>
40 #include <string.h>
41
42 #include "SDL.h" 38 #include "SDL.h"
39 #include "SDL_stdlib.h"
40 #include "SDL_string.h"
43 #include "SDL_error.h" 41 #include "SDL_error.h"
44 #include "SDL_video.h" 42 #include "SDL_video.h"
45 #include "SDL_mouse.h" 43 #include "SDL_mouse.h"
46 #include "SDL_sysvideo.h" 44 #include "SDL_sysvideo.h"
47 #include "SDL_pixels_c.h" 45 #include "SDL_pixels_c.h"
143 }; 141 };
144 142
145 143
146 int DUMMY_VideoInit(_THIS, SDL_PixelFormat *vformat) 144 int DUMMY_VideoInit(_THIS, SDL_PixelFormat *vformat)
147 { 145 {
146 /*
148 fprintf(stderr, "WARNING: You are using the SDL dummy video driver!\n"); 147 fprintf(stderr, "WARNING: You are using the SDL dummy video driver!\n");
148 */
149 149
150 /* Determine the screen depth (use default 8-bit depth) */ 150 /* Determine the screen depth (use default 8-bit depth) */
151 /* we change this during the SDL_SetVideoMode implementation... */ 151 /* we change this during the SDL_SetVideoMode implementation... */
152 vformat->BitsPerPixel = 8; 152 vformat->BitsPerPixel = 8;
153 vformat->BytesPerPixel = 1; 153 vformat->BytesPerPixel = 1;