win32: remove some compile warnings

This commit is contained in:
OV2 2018-05-05 15:09:36 +02:00
parent 82f3dc4e60
commit 7eaf377183
2 changed files with 2 additions and 1 deletions

View File

@ -222,6 +222,7 @@ COPY "$(ProjectDir)src\scripts\pnglibconf.h.prebuilt" "$(ProjectDir)src\pnglibco
<FloatingPointExceptions>false</FloatingPointExceptions>
<StringPooling>false</StringPooling>
<OmitFramePointers>false</OmitFramePointers>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>

View File

@ -4383,7 +4383,7 @@ RECT GetWindowMargins(HWND hwnd, UINT width)
rcMargins.top = abs(rcMargins.top);
if (!GUI.HideMenu) {
RECT rcTemp = {0,0,width,0x7FFF}; // 0x7FFF="Infinite" height
RECT rcTemp = {0,0,(LONG)width,0x7FFF}; // 0x7FFF="Infinite" height
SendMessage(hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rcTemp);
// Adjust our previous calculation to compensate for menu