From 10718b339c2d37d007a4ca7b2c431b6e5c13c908 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 30 Oct 2019 14:33:32 +0000 Subject: [PATCH] Try to fix Sock's window-not-sized-properly issue. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5577 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidnt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 06035054f..79fc66ac5 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -1032,8 +1032,8 @@ static qboolean VID_SetWindowedMode (rendererstate_t *info) if (mon != INVALID_HANDLE_VALUE) GetDpiForMonitor(mon, 0, &vid.dpi_x, &vid.dpi_y); */ - wwidth = (wwidth*vid.dpi_x)/96; - wheight = (wheight*vid.dpi_y)/96; +// wwidth = (wwidth*vid.dpi_x)/96; +// wheight = (wheight*vid.dpi_y)/96; } WindowRect = centerrect(pleft, ptop, pwidth, pheight, wwidth, wheight); @@ -1112,7 +1112,7 @@ static qboolean VID_SetWindowedMode (rendererstate_t *info) #endif } - ShowWindow (dibwindow, SW_SHOWDEFAULT); + ShowWindow (dibwindow, SW_SHOWNORMAL); SetFocus(dibwindow); // ShowWindow (dibwindow, SW_SHOWDEFAULT); @@ -1515,7 +1515,7 @@ static int GLVID_SetMode (rendererstate_t *info, unsigned char *palette) if (modestate == MS_FULLWINDOW) ShowWindow (dibwindow, SW_SHOWMAXIMIZED); else - ShowWindow (dibwindow, SW_SHOWDEFAULT); + ShowWindow (dibwindow, SW_SHOWNORMAL); if (!GL_Init(info, getglfunc)) return false;