summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/i_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 733af899..8c2cfeac 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1761,6 +1761,8 @@ static void SetVideoMode(screen_mode_t *mode, int w, int h)
else
{
flags |= SDL_RESIZABLE;
+ // villsa - center window
+ SDL_putenv("SDL_VIDEO_CENTERED=1");
}
screen = SDL_SetVideoMode(w, h, 8, flags);