Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Create a fake desktop mode for windowed mode apps

  • Loading branch information
slouken committed Jul 16, 2006
1 parent df97ad8 commit a18520640dc2f2cf062e5d24622c914eb3f465ce
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/video/dummy/SDL_nullvideo.c
@@ -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);

0 comments on commit a185206

Please sign in to comment.