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"
53static int DUMMY_VideoInit(
_THIS);
55static void DUMMY_VideoQuit(
_THIS);
62 const char *envr =
SDL_getenv(
"SDL_VIDEODRIVER");
63 if ((envr) && (
SDL_strcmp(envr, DUMMYVID_DRIVER_NAME) == 0)) {
77DUMMY_CreateDevice(
int devindex)
90 device->VideoInit = DUMMY_VideoInit;
91 device->VideoQuit = DUMMY_VideoQuit;
92 device->SetDisplayMode = DUMMY_SetDisplayMode;
98 device->free = DUMMY_DeleteDevice;
104 DUMMYVID_DRIVER_NAME,
"SDL dummy video driver",
105 DUMMY_Available, DUMMY_CreateDevice
110DUMMY_VideoInit(
_THIS)
118 mode.refresh_rate = 0;
138DUMMY_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