Fix WindowImplX11 initialization

This commit is contained in:
Jan Haller 2022-01-01 10:34:50 +01:00 committed by Lukas Dürrenberger
parent 3b06972602
commit 2ea46c8702

View File

@ -586,7 +586,7 @@ m_lastInputTime (0)
else
{
windowPosition.x = (DisplayWidth(m_display, m_screen) - static_cast<int>(mode.width)) / 2;
windowPosition.y = (DisplayWidth(m_display, m_screen) - static_cast<int>(mode.height)) / 2;
windowPosition.y = (DisplayHeight(m_display, m_screen) - static_cast<int>(mode.height)) / 2;
}
unsigned int width = mode.width;