Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Create a fake desktop mode for windowed mode apps
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 16, 2006
1 parent df97ad8 commit a185206
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/video/dummy/SDL_nullvideo.c
Expand Up @@ -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);
Expand Down

0 comments on commit a185206

Please sign in to comment.