SDL1: Support fullscreen
This "just works" now, not sure which of the commits fixed it.
This commit is contained in:
parent
b23e1ea527
commit
9d4dce5c62
1 changed files with 3 additions and 4 deletions
|
|
@ -137,15 +137,14 @@ bool SpawnWindow(LPCSTR lpWindowName, int nWidth, int nHeight)
|
|||
|
||||
#ifdef USE_SDL1
|
||||
int flags = SDL_SWSURFACE | SDL_DOUBLEBUF | SDL_HWPALETTE;
|
||||
if (fullscreen) {
|
||||
SDL_Log("fullscreen not yet supported with SDL1");
|
||||
}
|
||||
// flags |= fullscreen ? SDL_FULLSCREEN : SDL_RESIZABLE;
|
||||
if (fullscreen)
|
||||
flags |= SDL_FULLSCREEN;
|
||||
SDL_WM_SetCaption(lpWindowName, WINDOW_ICON_NAME);
|
||||
SDL_SetVideoMode(nWidth, nHeight, /*bpp=*/0, flags);
|
||||
window = SDL_GetVideoSurface();
|
||||
if (grabInput)
|
||||
SDL_WM_GrabInput(SDL_GRAB_ON);
|
||||
atexit(SDL_VideoQuit); // Without this video mode is not restored after fullscreen.
|
||||
#else
|
||||
int flags = 0;
|
||||
if (upscale) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue