From 018e0cc849e05617327dfddbfcbf9897373940aa Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 24 Sep 2004 04:42:10 +0000 Subject: [PATCH] so gl_2dscale takes effect if the user manually resizes the window with the mouse cursor. Kinda funky. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@245 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidnt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index d85487e84..3d8fa9fac 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -1109,8 +1109,11 @@ LONG WINAPI GLMainWndProc ( case WM_SIZE: if (!vid_initializing) { + extern cvar_t gl_2dscale; WindowRect.right = ((short*)&lParam)[0] - WindowRect.left; WindowRect.bottom = ((short*)&lParam)[1] - WindowRect.top; + + gl_2dscale.modified = true; } break;