shithub: choc

Download patch

ref: fd0c011dcc9d56d366d62c38695d5e8dd47643c7
parent: 2ca389a5e23bb45ac5fcc093776a51a1f1fbeb47
author: Samuel Villareal <[email protected]>
date: Sun Sep 19 14:17:26 EDT 2010

+ SetVideoMode - center window on desktop when not in fullscreen mode

Subversion-branch: /branches/strife-branch
Subversion-revision: 2117

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1761,6 +1761,8 @@
     else
     {
         flags |= SDL_RESIZABLE;
+        // villsa - center window
+        SDL_putenv("SDL_VIDEO_CENTERED=1");
     }
 
     screen = SDL_SetVideoMode(w, h, 8, flags);