From 2ea46c8702c3ddeeea56976b96a8454abd9901db Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Sat, 1 Jan 2022 10:34:50 +0100 Subject: [PATCH] Fix WindowImplX11 initialization --- src/SFML/Window/Unix/WindowImplX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index b845898c4..59a0fbace 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -586,7 +586,7 @@ m_lastInputTime (0) else { windowPosition.x = (DisplayWidth(m_display, m_screen) - static_cast(mode.width)) / 2; - windowPosition.y = (DisplayWidth(m_display, m_screen) - static_cast(mode.height)) / 2; + windowPosition.y = (DisplayHeight(m_display, m_screen) - static_cast(mode.height)) / 2; } unsigned int width = mode.width;