# HG changeset patch # User Joshua Surace # Date 1628091839 -36000 # Thu Aug 05 01:43:59 2021 +1000 # Node ID a2527c847f3665b9d951d6eb20a2a67e810000a3 # Parent 2ec2e4a81ee4d15ec92cead61ff84fd8aacdf288 Fixed the screen from being cut-off while running in windowed mode. diff -r 2ec2e4a81ee4 -r a2527c847f36 src/win32/win32gliface.cpp --- a/src/win32/win32gliface.cpp Sun Aug 01 16:44:14 2021 -0400 +++ b/src/win32/win32gliface.cpp Thu Aug 05 01:43:59 2021 +1000 @@ -895,7 +895,8 @@ } else { - MoveWindow(Window, r.left, r.top, width + (GetSystemMetrics(SM_CXSIZEFRAME) * 2), height + (GetSystemMetrics(SM_CYSIZEFRAME) * 2) + GetSystemMetrics(SM_CYCAPTION), FALSE); + // [JS] Fixed the screen from being cut-off while running in windowed mode. + MoveWindow(Window, r.left, r.top, width + (GetSystemMetrics(SM_CXSIZEFRAME) * 4), height + (GetSystemMetrics(SM_CYSIZEFRAME) * 2) + (GetSystemMetrics(SM_CYCAPTION) * 1.4), FALSE); I_RestoreWindowedPos(); }