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
This commit is contained in:
parent
ff5237f066
commit
10718b339c
1 changed files with 4 additions and 4 deletions
|
@ -1032,8 +1032,8 @@ static qboolean VID_SetWindowedMode (rendererstate_t *info)
|
||||||
if (mon != INVALID_HANDLE_VALUE)
|
if (mon != INVALID_HANDLE_VALUE)
|
||||||
GetDpiForMonitor(mon, 0, &vid.dpi_x, &vid.dpi_y);
|
GetDpiForMonitor(mon, 0, &vid.dpi_x, &vid.dpi_y);
|
||||||
*/
|
*/
|
||||||
wwidth = (wwidth*vid.dpi_x)/96;
|
// wwidth = (wwidth*vid.dpi_x)/96;
|
||||||
wheight = (wheight*vid.dpi_y)/96;
|
// wheight = (wheight*vid.dpi_y)/96;
|
||||||
}
|
}
|
||||||
|
|
||||||
WindowRect = centerrect(pleft, ptop, pwidth, pheight, wwidth, wheight);
|
WindowRect = centerrect(pleft, ptop, pwidth, pheight, wwidth, wheight);
|
||||||
|
@ -1112,7 +1112,7 @@ static qboolean VID_SetWindowedMode (rendererstate_t *info)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowWindow (dibwindow, SW_SHOWDEFAULT);
|
ShowWindow (dibwindow, SW_SHOWNORMAL);
|
||||||
SetFocus(dibwindow);
|
SetFocus(dibwindow);
|
||||||
|
|
||||||
// ShowWindow (dibwindow, SW_SHOWDEFAULT);
|
// ShowWindow (dibwindow, SW_SHOWDEFAULT);
|
||||||
|
@ -1515,7 +1515,7 @@ static int GLVID_SetMode (rendererstate_t *info, unsigned char *palette)
|
||||||
if (modestate == MS_FULLWINDOW)
|
if (modestate == MS_FULLWINDOW)
|
||||||
ShowWindow (dibwindow, SW_SHOWMAXIMIZED);
|
ShowWindow (dibwindow, SW_SHOWMAXIMIZED);
|
||||||
else
|
else
|
||||||
ShowWindow (dibwindow, SW_SHOWDEFAULT);
|
ShowWindow (dibwindow, SW_SHOWNORMAL);
|
||||||
|
|
||||||
if (!GL_Init(info, getglfunc))
|
if (!GL_Init(info, getglfunc))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue