mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- implemented fullscreen toggle in SDL backend
Made window resizable but its size and position are not saved yet
This commit is contained in:
parent
37a0c1d6c1
commit
c6e4d6a333
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ SystemFrameBuffer::SystemFrameBuffer (void *, bool fullscreen)
|
|||
Screen = SDL_CreateWindow (caption,
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(vid_adapter),
|
||||
SDL_WINDOWPOS_UNDEFINED_DISPLAY(vid_adapter),
|
||||
vid_defwidth, vid_defheight, (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0)|SDL_WINDOW_OPENGL
|
||||
vid_defwidth, vid_defheight, (fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0) | SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
|
||||
);
|
||||
if (Screen != NULL)
|
||||
{
|
||||
|
@ -311,7 +311,7 @@ void SystemFrameBuffer::SwapBuffers()
|
|||
|
||||
void SystemFrameBuffer::ToggleFullscreen(bool yes)
|
||||
{
|
||||
... // todo
|
||||
SDL_SetWindowFullscreen(Screen, yes ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
|
||||
}
|
||||
|
||||
int SystemFrameBuffer::GetClientWidth()
|
||||
|
|
Loading…
Reference in a new issue