Rename functions for consistency

This commit is contained in:
Christian Semmler 2023-12-29 18:01:24 -05:00
parent 6ac505fb49
commit 4b08cb4a7e
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C
2 changed files with 10 additions and 7 deletions

View file

@ -10,17 +10,17 @@ MxU32 g_unk0x1010215c = 0;
// FUNCTION: LEGO1 0x100ba500 // FUNCTION: LEGO1 0x100ba500
MxDisplaySurface::MxDisplaySurface() MxDisplaySurface::MxDisplaySurface()
{ {
this->Reset(); this->Init();
} }
// FUNCTION: LEGO1 0x100ba5a0 // FUNCTION: LEGO1 0x100ba5a0
MxDisplaySurface::~MxDisplaySurface() MxDisplaySurface::~MxDisplaySurface()
{ {
this->Clear(); this->Destroy();
} }
// FUNCTION: LEGO1 0x100ba610 // FUNCTION: LEGO1 0x100ba610
void MxDisplaySurface::Reset() void MxDisplaySurface::Init()
{ {
this->m_ddSurface1 = NULL; this->m_ddSurface1 = NULL;
this->m_ddSurface2 = NULL; this->m_ddSurface2 = NULL;
@ -199,7 +199,7 @@ MxResult MxDisplaySurface::Create(MxVideoParam& p_videoParam)
} }
// FUNCTION: LEGO1 0x100baa90 // FUNCTION: LEGO1 0x100baa90
void MxDisplaySurface::Clear() void MxDisplaySurface::Destroy()
{ {
if (this->m_initialized) { if (this->m_initialized) {
if (this->m_ddSurface2) if (this->m_ddSurface2)
@ -215,7 +215,7 @@ void MxDisplaySurface::Clear()
if (this->m_16bitPal) if (this->m_16bitPal)
delete this->m_16bitPal; delete this->m_16bitPal;
this->Reset(); this->Init();
} }
// STUB: LEGO1 0x100baae0 // STUB: LEGO1 0x100baae0

View file

@ -23,7 +23,7 @@ class MxDisplaySurface : public MxCore {
LPDIRECTDRAWCLIPPER p_ddClipper LPDIRECTDRAWCLIPPER p_ddClipper
); // vtable+0x14 ); // vtable+0x14
virtual MxResult Create(MxVideoParam& p_videoParam); // vtable+0x18 virtual MxResult Create(MxVideoParam& p_videoParam); // vtable+0x18
virtual void Clear(); // vtable+0x1c virtual void Destroy(); // vtable+0x1c
virtual void SetPalette(MxPalette* p_palette); // vtable+0x20 virtual void SetPalette(MxPalette* p_palette); // vtable+0x20
virtual void VTable0x24( virtual void VTable0x24(
LPDDSURFACEDESC, LPDDSURFACEDESC,
@ -92,7 +92,7 @@ class MxDisplaySurface : public MxCore {
inline MxVideoParam& GetVideoParam() { return this->m_videoParam; } inline MxVideoParam& GetVideoParam() { return this->m_videoParam; }
private: private:
void Reset(); void Init();
MxVideoParam m_videoParam; // 0x08 MxVideoParam m_videoParam; // 0x08
LPDIRECTDRAWSURFACE m_ddSurface1; // 0x2c LPDIRECTDRAWSURFACE m_ddSurface1; // 0x2c
@ -103,4 +103,7 @@ class MxDisplaySurface : public MxCore {
MxU16* m_16bitPal; // 0xa8 MxU16* m_16bitPal; // 0xa8
}; };
// SYNTHETIC: LEGO1 0x100ba580
// MxDisplaySurface::`scalar deleting destructor'
#endif // MXDISPLAYSURFACE_H #endif // MXDISPLAYSURFACE_H