Mercurial > sdl-ios-xcode
comparison src/video/dummy/SDL_nullvideo.c @ 1677:5e4c5e095925 SDL-1.3
Added new style dummy renderer
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 13 Jun 2006 04:37:45 +0000 |
parents | e136f3ffdc1b |
children | 80a5e6a4e1e2 |
comparison
equal
deleted
inserted
replaced
1676:e136f3ffdc1b | 1677:5e4c5e095925 |
---|---|
42 #include "../SDL_pixels_c.h" | 42 #include "../SDL_pixels_c.h" |
43 #include "../../events/SDL_events_c.h" | 43 #include "../../events/SDL_events_c.h" |
44 | 44 |
45 #include "SDL_nullvideo.h" | 45 #include "SDL_nullvideo.h" |
46 #include "SDL_nullevents_c.h" | 46 #include "SDL_nullevents_c.h" |
47 #include "SDL_nullmouse_c.h" | 47 #include "SDL_nullrender_c.h" |
48 | 48 |
49 #define DUMMYVID_DRIVER_NAME "dummy" | 49 #define DUMMYVID_DRIVER_NAME "dummy" |
50 | 50 |
51 /* Initialization/Query functions */ | 51 /* Initialization/Query functions */ |
52 static int DUMMY_VideoInit(_THIS); | 52 static int DUMMY_VideoInit(_THIS); |
119 DUMMY_VideoInit(_THIS) | 119 DUMMY_VideoInit(_THIS) |
120 { | 120 { |
121 SDL_DisplayMode mode; | 121 SDL_DisplayMode mode; |
122 | 122 |
123 SDL_AddBasicVideoDisplay(NULL); | 123 SDL_AddBasicVideoDisplay(NULL); |
124 SDL_AddRenderDriver(0, &SDL_DUMMY_RenderDriver); | |
124 | 125 |
125 SDL_zero(mode); | 126 SDL_zero(mode); |
126 SDL_AddDisplayMode(0, &mode); | 127 SDL_AddDisplayMode(0, &mode); |
127 | 128 |
128 /* We're done! */ | 129 /* We're done! */ |