mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix ill-formed sizeof's
This commit is contained in:
parent
27e6649413
commit
7d809a0d28
|
|
@ -439,8 +439,8 @@ void Win32Window::centerWindow()
|
|||
|
||||
// Get the monitor's extents.
|
||||
MONITORINFO monInfo;
|
||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
||||
monInfo.cbSize = sizeof MONITORINFO;
|
||||
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||
monInfo.cbSize = sizeof(MONITORINFO);
|
||||
GetMonitorInfo(hMon, &monInfo);
|
||||
|
||||
// Calculate the offset to center the window in the working area
|
||||
|
|
@ -502,8 +502,8 @@ bool Win32Window::setSize( const Point2I &newSize )
|
|||
|
||||
// Get the monitor's extents.
|
||||
MONITORINFO monInfo;
|
||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
||||
monInfo.cbSize = sizeof MONITORINFO;
|
||||
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||
monInfo.cbSize = sizeof(MONITORINFO);
|
||||
GetMonitorInfo(hMon, &monInfo);
|
||||
|
||||
// Calculate the offset to center the window in the working area
|
||||
|
|
|
|||
|
|
@ -501,8 +501,8 @@ void Win32WindowManager::lowerCurtain()
|
|||
|
||||
// Get the monitor's extents.
|
||||
MONITORINFO monInfo;
|
||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
||||
monInfo.cbSize = sizeof MONITORINFO;
|
||||
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||
monInfo.cbSize = sizeof(MONITORINFO);
|
||||
|
||||
GetMonitorInfo(hMon, &monInfo);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue