Update mxpalette.cpp

This commit is contained in:
Joshua Peisach 2023-07-02 19:10:16 -04:00 committed by GitHub
parent 1b53ef0d95
commit 7a8c18ca44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,8 @@ void MxPalette::ApplySystemEntriesToPalette(LPPALETTEENTRY p_entries)
{
// FIXME: incomplete
HDC hdc = GetDC(NULL);
MxU32 rastercaps = GetDeviceCaps(hdc, RASTERCAPS);
MxS32 sizepalettecaps;
int rastercaps = GetDeviceCaps(hdc, RASTERCAPS);
int sizepalettecaps;
if ((rastercaps & RC_PALETTE) != 0) {
sizepalettecaps = GetDeviceCaps(hdc, SIZEPALETTE);
if(sizepalettecaps = 256) {
@ -70,7 +70,7 @@ MxResult MxPalette::SetSkyColor(LPPALETTEENTRY p_entries)
void MxPalette::GetDefaultPalette(LPPALETTEENTRY p_entries)
{
HDC hdc = GetDC((HWND) NULL);
MxS32 rasterCaps = GetDeviceCaps(hdc, RASTERCAPS);
int rasterCaps = GetDeviceCaps(hdc, RASTERCAPS);
LPPALETTEENTRY src;
MxS32 count;
@ -101,4 +101,4 @@ void MxPalette::Detach()
{
this->m_palette = NULL;
}