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