]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Also, rect shouldn't be a reference in AdjustWindowBounds but a pointer. Grr...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 3 Aug 2015 17:50:43 +0000 (17:50 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 17 Oct 2015 22:43:25 +0000 (00:43 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12220 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3732b64a7c0a7f5000f00deaabb8fd2d372e9d8a

vid_wgl.c

index 70155a0c92dc035684d5d4b90216c71655a17f97..b9aadeb387ef4db604146a9c937c41ca3b83158f 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -216,7 +216,7 @@ static HINSTANCE hInstDI;
 
 // forward-referenced functions
 static void IN_StartupMouse (void);
-static void AdjustWindowBounds(int fullscreen, int *width, int *height, viddef_mode_t *mode, DWORD WindowStyle, RECT &rect);
+static void AdjustWindowBounds(int fullscreen, int *width, int *height, viddef_mode_t *mode, DWORD WindowStyle, RECT *rect);
 
 //====================================
 
@@ -1166,7 +1166,7 @@ qboolean VID_InitModeGL(viddef_mode_t *mode)
                ExWindowStyle = 0;
        }
 
-       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, rect);
+       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, &rect);
 
        pixelformat = 0;
        newpixelformat = 0;
@@ -1324,7 +1324,7 @@ qboolean VID_InitModeGL(viddef_mode_t *mode)
        return true;
 }
 
-static void AdjustWindowBounds(int fullscreen, int *width, int *height, viddef_mode_t *mode, DWORD WindowStyle, RECT &rect)
+static void AdjustWindowBounds(int fullscreen, int *width, int *height, viddef_mode_t *mode, DWORD WindowStyle, RECT *rect)
 {
        int CenterX, CenterY;
 
@@ -1413,7 +1413,7 @@ qboolean VID_InitModeDX(viddef_mode_t *mode, int version)
                ExWindowStyle = 0;
        }
 
-       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, rect);
+       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, &rect);
 
        gl_extensions = "";
        gl_platformextensions = "";
@@ -1748,7 +1748,7 @@ qboolean VID_InitModeSOFT(viddef_mode_t *mode)
                ExWindowStyle = 0;
        }
 
-       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, rect);
+       AdjustWindowBounds(fullscreen, &width, &height, mode, WindowStyle, &rect);
 
        pixelformat = 0;
        newpixelformat = 0;