From a59a3ebb6eab1e0c4a34c30446389def6f6bdcc6 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Sun, 2 Jul 2023 10:09:00 -0400 Subject: [PATCH] Use MxTypes instead of generics --- LEGO1/mxpalette.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LEGO1/mxpalette.cpp b/LEGO1/mxpalette.cpp index 6d775cf4..fc2570d9 100644 --- a/LEGO1/mxpalette.cpp +++ b/LEGO1/mxpalette.cpp @@ -22,8 +22,8 @@ void MxPalette::ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries) { // FIXME: incomplete HDC hdc = GetDC(NULL); - unsigned int rastercaps = GetDeviceCaps(hdc, RASTERCAPS); - int sizepalettecaps; + MxU32 rastercaps = GetDeviceCaps(hdc, RASTERCAPS); + MxS32 sizepalettecaps; if ((rastercaps & RC_PALETTE) != 0) { sizepalettecaps = GetDeviceCaps(hdc, SIZEPALETTE); if(sizepalettecaps = 256) { @@ -70,9 +70,9 @@ MxResult MxPalette::SetSkyColor(LPPALETTEENTRY p_entries) void MxPalette::GetDefaultPalette(LPPALETTEENTRY p_entries) { HDC hdc = GetDC((HWND) NULL); - int rasterCaps = GetDeviceCaps(hdc, RASTERCAPS); + MxS32 rasterCaps = GetDeviceCaps(hdc, RASTERCAPS); LPPALETTEENTRY src; - int count; + MxS32 count; if ((rasterCaps & RC_PALETTE) != 0 && GetDeviceCaps(hdc, SIZEPALETTE) == 256) { GetSystemPaletteEntries(hdc, 0, 256, p_entries);