Fix compiler warning

This commit is contained in:
Wojtek Figat
2021-02-16 11:47:39 +01:00
parent 5f04f32097
commit a98f867bd8

View File

@@ -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);
}