diff options
author | Samuel Villareal | 2010-09-19 18:17:26 +0000 |
---|---|---|
committer | Samuel Villareal | 2010-09-19 18:17:26 +0000 |
commit | fd0c011dcc9d56d366d62c38695d5e8dd47643c7 (patch) | |
tree | 19df8c2dab22b3638fae2affb6874758019421d1 | |
parent | 2ca389a5e23bb45ac5fcc093776a51a1f1fbeb47 (diff) | |
download | chocolate-doom-fd0c011dcc9d56d366d62c38695d5e8dd47643c7.tar.gz chocolate-doom-fd0c011dcc9d56d366d62c38695d5e8dd47643c7.tar.bz2 chocolate-doom-fd0c011dcc9d56d366d62c38695d5e8dd47643c7.zip |
+ SetVideoMode - center window on desktop when not in fullscreen mode
Subversion-branch: /branches/strife-branch
Subversion-revision: 2117
-rw-r--r-- | src/i_video.c | 2 |
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); |