mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Test if conditions in ImportColorsToPalette
This commit is contained in:
parent
6480fd90e7
commit
cc32fc0e5b
@ -110,11 +110,11 @@ MxResult MxBitmap::ImportColorsToPalette(RGBQUAD* p_rgbquad, MxPalette* p_palett
|
|||||||
PALETTEENTRY entries[256];
|
PALETTEENTRY entries[256];
|
||||||
|
|
||||||
if (p_palette) {
|
if (p_palette) {
|
||||||
if (p_palette->GetEntries(entries))
|
if (!p_palette->GetEntries(entries))
|
||||||
return ret;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
MxPalette local_pal;
|
MxPalette local_pal;
|
||||||
if (local_pal.GetEntries(entries))
|
if (!local_pal.GetEntries(entries))
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -367,4 +367,4 @@ MxResult MxBitmap::StretchBits(HDC p_hdc, int p_xSrc, int p_ySrc, int p_xDest, i
|
|||||||
}
|
}
|
||||||
|
|
||||||
return StretchDIBits(p_hdc, p_xDest, p_yDest, p_destWidth, p_destHeight, p_xSrc, p_ySrc, p_destWidth, p_destHeight, this->m_data, (BITMAPINFO*)this->m_info, this->m_bitDepth, SRCCOPY);
|
return StretchDIBits(p_hdc, p_xDest, p_yDest, p_destWidth, p_destHeight, p_xSrc, p_ySrc, p_destWidth, p_destHeight, this->m_data, (BITMAPINFO*)this->m_info, this->m_bitDepth, SRCCOPY);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user