From a98f867bd8cbae93b66e22b2abb95077f0560650 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 16 Feb 2021 11:47:39 +0100 Subject: [PATCH] Fix compiler warning --- Source/Engine/Platform/Windows/WindowsWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/Platform/Windows/WindowsWindow.cpp b/Source/Engine/Platform/Windows/WindowsWindow.cpp index 61c8737b8..2d60cc40a 100644 --- a/Source/Engine/Platform/Windows/WindowsWindow.cpp +++ b/Source/Engine/Platform/Windows/WindowsWindow.cpp @@ -426,8 +426,8 @@ void WindowsWindow::GetScreenInfo(int32& x, int32& y, int32& width, int32& heigh // Calculate result x = monitorInfo.rcMonitor.left; y = monitorInfo.rcMonitor.top; - width = monitorInfo.rcMonitor.right - x; - height = monitorInfo.rcMonitor.bottom - y; + width = monitorInfo.rcMonitor.right - monitorInfo.rcMonitor.left; + height = monitorInfo.rcMonitor.bottom - monitorInfo.rcMonitor.top; } float WindowsWindow::GetOpacity() const @@ -481,7 +481,7 @@ void WindowsWindow::StartTrackingMouse(bool useMouseScreenOffset) int32 x = 0 , y = 0, width = 0, height = 0; GetScreenInfo(x, y, width, height); - _mouseOffsetScreenSize = Rectangle(x, y, width, height); + _mouseOffsetScreenSize = Rectangle((float)x, (float)y, (float)width, (float)height); SetCapture(_handle); }