]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_wgl.c
Changed dp so the new vm fits in.
[xonotic/darkplaces.git] / vid_wgl.c
index 8bc1d781efd5d9204aa937c8362c8859f1297fd7..358993b3d737a4c535707f02f62553544e969cdf 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -799,7 +799,7 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp, int stencil)
 
                vid_isfullscreen = true;
                WindowStyle = WS_POPUP;
-               ExWindowStyle = 0;
+               ExWindowStyle = WS_EX_TOPMOST;
        }
        else
        {
@@ -976,6 +976,9 @@ void VID_Shutdown (void)
        HGLRC hRC = 0;
        HDC hDC = 0;
 
+       if(vid_initialized == false)
+               return;
+
        VID_RestoreSystemGamma();
 
        vid_initialized = false;