mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 10:44:39 -05:00
Create a fake desktop mode for windowed mode apps
This commit is contained in:
@@ -109,7 +109,12 @@ DUMMY_VideoInit(_THIS)
|
||||
{
|
||||
SDL_DisplayMode mode;
|
||||
|
||||
SDL_AddBasicVideoDisplay(NULL);
|
||||
/* Use a fake 32-bpp desktop mode */
|
||||
mode.format = SDL_PixelFormat_RGB888;
|
||||
mode.w = 1024;
|
||||
mode.h = 768;
|
||||
mode.refresh_rate = 0;
|
||||
SDL_AddBasicVideoDisplay(&mode);
|
||||
SDL_AddRenderDriver(0, &SDL_DUMMY_RenderDriver);
|
||||
|
||||
SDL_zero(mode);
|
||||
|
||||
Reference in New Issue
Block a user