mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Use SUCCESS and FAILURE in MxPalette::SetSkyColor (#1506)
This commit is contained in:
@@ -238,14 +238,14 @@ MxResult MxPalette::SetEntries(LPPALETTEENTRY p_entries)
|
|||||||
// FUNCTION: BETA10 0x101442aa
|
// FUNCTION: BETA10 0x101442aa
|
||||||
MxResult MxPalette::SetSkyColor(LPPALETTEENTRY p_skyColor)
|
MxResult MxPalette::SetSkyColor(LPPALETTEENTRY p_skyColor)
|
||||||
{
|
{
|
||||||
MxResult status = 0;
|
MxResult status = SUCCESS;
|
||||||
if (m_palette != NULL) {
|
if (m_palette != NULL) {
|
||||||
m_entries[141].peRed = p_skyColor->peRed;
|
m_entries[141].peRed = p_skyColor->peRed;
|
||||||
m_entries[141].peGreen = p_skyColor->peGreen;
|
m_entries[141].peGreen = p_skyColor->peGreen;
|
||||||
m_entries[141].peBlue = p_skyColor->peBlue;
|
m_entries[141].peBlue = p_skyColor->peBlue;
|
||||||
m_skyColor = m_entries[141];
|
m_skyColor = m_entries[141];
|
||||||
if (m_palette->SetEntries(0, 141, 1, &m_skyColor)) {
|
if (m_palette->SetEntries(0, 141, 1, &m_skyColor)) {
|
||||||
status = -1;
|
status = FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return status;
|
return status;
|
||||||
|
Reference in New Issue
Block a user