MxPalette - add missing member variables, Detach function

This commit is contained in:
Joshua Peisach
2023-06-28 19:14:07 -04:00
parent 2d9af630ba
commit 21a4fe1375
2 changed files with 11 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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