From dad3e1f77da66bfad200cf5897a256ee2fa6b1de Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 11 Oct 2023 17:17:46 +0200 Subject: [PATCH] Revert f1d57e47cb7e86596cf9cdb376d7002d8d0cfe6c in favor of #1670 --- Source/Engine/Platform/Windows/WindowsWindow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/Engine/Platform/Windows/WindowsWindow.cpp b/Source/Engine/Platform/Windows/WindowsWindow.cpp index 8d6cbdf18..fb9fbe09d 100644 --- a/Source/Engine/Platform/Windows/WindowsWindow.cpp +++ b/Source/Engine/Platform/Windows/WindowsWindow.cpp @@ -219,12 +219,6 @@ void WindowsWindow::Show() if (!_settings.HasBorder) { SetWindowPos(_handle, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER); - if (!_settings.IsRegularWindow && _settings.ShowAfterFirstPaint && _settings.StartPosition == WindowStartPosition::Manual) - { - int32 x = Math::TruncToInt(_settings.Position.X); - int32 y = Math::TruncToInt(_settings.Position.Y); - SetWindowPos(_handle, nullptr, x, y, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOOWNERZORDER); - } } #endif