Fix compiler warning
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user