mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fix ill-formed sizeof's
This commit is contained in:
parent
27e6649413
commit
7d809a0d28
2 changed files with 6 additions and 6 deletions
|
|
@ -439,8 +439,8 @@ void Win32Window::centerWindow()
|
||||||
|
|
||||||
// Get the monitor's extents.
|
// Get the monitor's extents.
|
||||||
MONITORINFO monInfo;
|
MONITORINFO monInfo;
|
||||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||||
monInfo.cbSize = sizeof MONITORINFO;
|
monInfo.cbSize = sizeof(MONITORINFO);
|
||||||
GetMonitorInfo(hMon, &monInfo);
|
GetMonitorInfo(hMon, &monInfo);
|
||||||
|
|
||||||
// Calculate the offset to center the window in the working area
|
// 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.
|
// Get the monitor's extents.
|
||||||
MONITORINFO monInfo;
|
MONITORINFO monInfo;
|
||||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||||
monInfo.cbSize = sizeof MONITORINFO;
|
monInfo.cbSize = sizeof(MONITORINFO);
|
||||||
GetMonitorInfo(hMon, &monInfo);
|
GetMonitorInfo(hMon, &monInfo);
|
||||||
|
|
||||||
// Calculate the offset to center the window in the working area
|
// Calculate the offset to center the window in the working area
|
||||||
|
|
|
||||||
|
|
@ -501,8 +501,8 @@ void Win32WindowManager::lowerCurtain()
|
||||||
|
|
||||||
// Get the monitor's extents.
|
// Get the monitor's extents.
|
||||||
MONITORINFO monInfo;
|
MONITORINFO monInfo;
|
||||||
dMemset(&monInfo, 0, sizeof MONITORINFO);
|
dMemset(&monInfo, 0, sizeof(MONITORINFO));
|
||||||
monInfo.cbSize = sizeof MONITORINFO;
|
monInfo.cbSize = sizeof(MONITORINFO);
|
||||||
|
|
||||||
GetMonitorInfo(hMon, &monInfo);
|
GetMonitorInfo(hMon, &monInfo);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue