(cherry picked from commit 4cc5d2e623)
This commit is contained in:
Camilla Löwy 2019-08-15 17:25:36 +02:00
Родитель c0d1249ca2
Коммит 2032a8f0dc
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1276,9 +1276,9 @@ static int createNativeWindow(_GLFWwindow* window,
window->win32.scaleToMonitor = wndconfig->scaleToMonitor;
// Adjust window size to account for DPI scaling of the window frame and
// optionally DPI scaling of the content area
// This cannot be done until we know what monitor it was placed on
// Adjust window rect to account for DPI scaling of the window frame and
// (if enabled) DPI scaling of the content area
// This cannot be done until we know what monitor the window was placed on
if (!window->monitor)
{
RECT rect = { 0, 0, wndconfig->width, wndconfig->height };