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
This commit is contained in:
Spoike 2004-09-24 04:42:10 +00:00
parent 98bd148fa1
commit 018e0cc849
1 changed files with 3 additions and 0 deletions

View File

@ -1109,8 +1109,11 @@ LONG WINAPI GLMainWndProc (
case WM_SIZE: case WM_SIZE:
if (!vid_initializing) if (!vid_initializing)
{ {
extern cvar_t gl_2dscale;
WindowRect.right = ((short*)&lParam)[0] - WindowRect.left; WindowRect.right = ((short*)&lParam)[0] - WindowRect.left;
WindowRect.bottom = ((short*)&lParam)[1] - WindowRect.top; WindowRect.bottom = ((short*)&lParam)[1] - WindowRect.top;
gl_2dscale.modified = true;
} }
break; break;