mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
MxPalette - add missing member variables, Detach function
This commit is contained in:
@@ -6,3 +6,9 @@ MxResult MxPalette::GetEntries(LPPALETTEENTRY p_entries)
|
|||||||
memcpy(p_entries, this->m_entries, sizeof(this->m_entries));
|
memcpy(p_entries, this->m_entries, sizeof(this->m_entries));
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: LEGO1 0x100bf330
|
||||||
|
void MxPalette::Detach()
|
||||||
|
{
|
||||||
|
this->m_attached = NULL;
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <ddraw.h>
|
#include <ddraw.h>
|
||||||
|
|
||||||
|
#include "mxbool.h"
|
||||||
#include "mxcore.h"
|
#include "mxcore.h"
|
||||||
#include "mxresult.h"
|
#include "mxresult.h"
|
||||||
|
|
||||||
@@ -15,9 +16,11 @@ public:
|
|||||||
MxResult GetEntries(LPPALETTEENTRY p_entries);
|
MxResult GetEntries(LPPALETTEENTRY p_entries);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LPDIRECTDRAWPALETTE m_pDirectDrawPalette;
|
MxCore *m_attached;
|
||||||
|
LPDIRECTDRAWPALETTE m_palette;
|
||||||
PALETTEENTRY m_entries[256];
|
PALETTEENTRY m_entries[256];
|
||||||
// there's a bit more here
|
MxBool m_overrideSkyColor;
|
||||||
|
PALETTEENTRY m_skyColor;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MXPALETTE_H
|
#endif // MXPALETTE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user