21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_DUMMY
42 #include "../SDL_sysvideo.h"
43 #include "../SDL_pixels_c.h"
44 #include "../../events/SDL_events_c.h"
50 #define DUMMYVID_DRIVER_NAME "dummy"
53 static int DUMMY_VideoInit(
_THIS);
55 static void DUMMY_VideoQuit(
_THIS);
62 const char *envr =
SDL_getenv(
"SDL_VIDEODRIVER");
63 if ((envr) && (
SDL_strcmp(envr, DUMMYVID_DRIVER_NAME) == 0)) {
77 DUMMY_CreateDevice(
int devindex)
81 if (!DUMMY_Available()) {
94 device->VideoInit = DUMMY_VideoInit;
95 device->VideoQuit = DUMMY_VideoQuit;
96 device->SetDisplayMode = DUMMY_SetDisplayMode;
102 device->free = DUMMY_DeleteDevice;
108 DUMMYVID_DRIVER_NAME,
"SDL dummy video driver",
114 DUMMY_VideoInit(
_THIS)
122 mode.refresh_rate = 0;
142 DUMMY_VideoQuit(
_THIS)
#define SDL_OutOfMemory()
void DUMMY_PumpEvents(_THIS)
int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window *window)
VideoBootStrap DUMMY_bootstrap
int SDL_AddBasicVideoDisplay(const SDL_DisplayMode *desktop_mode)
SDL_bool SDL_AddDisplayMode(SDL_VideoDisplay *display, const SDL_DisplayMode *mode)
static SDL_VideoDevice * _this
static SDL_AudioDeviceID device
The structure that defines a display mode.
SDL_VideoDisplay * displays