do vs2017 warnings.h a little differently than vs2019

fixes #545
This commit is contained in:
nhmall
2021-07-07 09:05:22 -04:00
parent caee59b131
commit 216c26aaef
3 changed files with 24 additions and 6 deletions

View File

@@ -965,8 +965,11 @@ paintGlyph(PNHMapWindow data, int i, int j, RECT * rect)
DeleteObject(brush);
intensity = (wch == 0x2591 ? 100 : 200);
brush = CreateSolidBrush(RGB(intensity, intensity, intensity));
RECT smallRect = { rect->left + 1, rect->top + 1,
rect->right - 1, rect->bottom - 1 };
RECT smallRect = {0};
smallRect.left = rect->left + 1;
smallRect.top = rect->top + 1;
smallRect.right = rect->right - 1;
smallRect.bottom = rect->bottom - 1;
FillRect(data->backBufferDC, &smallRect, brush);
DeleteObject(brush);
} else {