Mercurial > sdl-ios-xcode
comparison src/video/dummy/SDL_nullvideo.c @ 5157:fb424691cfc7
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 02 Feb 2011 14:34:54 -0800 |
parents | f7b03b6838cb |
children | 4d39eeaad00b |
comparison
equal
deleted
inserted
replaced
5156:3e4086b3bcd2 | 5157:fb424691cfc7 |
---|---|
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_nullrender_c.h" | |
48 | 47 |
49 #define DUMMYVID_DRIVER_NAME "dummy" | 48 #define DUMMYVID_DRIVER_NAME "dummy" |
50 | 49 |
51 /* Initialization/Query functions */ | 50 /* Initialization/Query functions */ |
52 static int DUMMY_VideoInit(_THIS); | 51 static int DUMMY_VideoInit(_THIS); |
116 mode.refresh_rate = 0; | 115 mode.refresh_rate = 0; |
117 mode.driverdata = NULL; | 116 mode.driverdata = NULL; |
118 if (SDL_AddBasicVideoDisplay(&mode) < 0) { | 117 if (SDL_AddBasicVideoDisplay(&mode) < 0) { |
119 return -1; | 118 return -1; |
120 } | 119 } |
121 SDL_AddRenderDriver(&_this->displays[0], &SDL_DUMMY_RenderDriver); | |
122 | 120 |
123 SDL_zero(mode); | 121 SDL_zero(mode); |
124 SDL_AddDisplayMode(&_this->displays[0], &mode); | 122 SDL_AddDisplayMode(&_this->displays[0], &mode); |
125 | 123 |
126 /* We're done! */ | 124 /* We're done! */ |