1- #include " pearldew0x0c .h"
1+ #include " directdrawpalette .h"
22
33#include " bronzefalcon0xc8770.h"
44#include " golerror.h"
55#include " golsurfaceformat.h"
66
77#include < stdio.h>
88
9- DECOMP_SIZE_ASSERT (PearlDew0x0c , 0x0c )
9+ DECOMP_SIZE_ASSERT (DirectDrawPalette , 0x0c )
1010
1111// GLOBAL: GOLDP 0x10063150
12- PALETTEENTRY g_paletteEntries[PearlDew0x0c ::c_paletteEntries8Bit];
12+ PALETTEENTRY g_paletteEntries[DirectDrawPalette ::c_paletteEntries8Bit];
1313
1414// FUNCTION: GOLDP 0x10007190
15- PearlDew0x0c::PearlDew0x0c ()
15+ DirectDrawPalette::DirectDrawPalette ()
1616{
1717 m_palette = NULL ;
1818 m_firstEntry = 0 ;
1919 m_entryCount = 0 ;
2020}
2121
2222// FUNCTION: GOLDP 0x100071b0
23- PearlDew0x0c ::~PearlDew0x0c ()
23+ DirectDrawPalette ::~DirectDrawPalette ()
2424{
2525 if (m_palette) {
2626 m_palette->Release ();
@@ -32,7 +32,7 @@ PearlDew0x0c::~PearlDew0x0c()
3232}
3333
3434// FUNCTION: GOLDP 0x100071e0
35- void PearlDew0x0c ::CreateDirectDrawPalette (BronzeFalcon0xc8770* p_renderer, GolSurfaceFormat* p_textureFormat)
35+ void DirectDrawPalette ::CreateDirectDrawPalette (BronzeFalcon0xc8770* p_renderer, GolSurfaceFormat* p_textureFormat)
3636{
3737 LegoChar buffer[c_errorBufferSize];
3838
@@ -133,7 +133,7 @@ void PearlDew0x0c::CreateDirectDrawPalette(BronzeFalcon0xc8770* p_renderer, GolS
133133}
134134
135135// FUNCTION: GOLDP 0x100073f0
136- void PearlDew0x0c ::Release ()
136+ void DirectDrawPalette ::Release ()
137137{
138138 if (m_palette) {
139139 m_palette->Release ();
@@ -145,7 +145,7 @@ void PearlDew0x0c::Release()
145145}
146146
147147// FUNCTION: GOLDP 0x10007420
148- void PearlDew0x0c ::GetEntries (ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_count)
148+ void DirectDrawPalette ::GetEntries (ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_count)
149149{
150150 LegoChar buffer[c_errorBufferSize];
151151
@@ -182,7 +182,7 @@ void PearlDew0x0c::GetEntries(ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_c
182182}
183183
184184// FUNCTION: GOLDP 0x10007500
185- void PearlDew0x0c ::SetEntries (ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_count)
185+ void DirectDrawPalette ::SetEntries (ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_count)
186186{
187187 LegoChar buffer[c_errorBufferSize];
188188
@@ -201,7 +201,7 @@ void PearlDew0x0c::SetEntries(ColorRGBA* p_entries, LegoU32 p_start, LegoU32 p_c
201201}
202202
203203// FUNCTION: GOLDP 0x100075b0
204- void PearlDew0x0c ::GetEntry (ColorRGBA* p_entry, LegoU32 p_index)
204+ void DirectDrawPalette ::GetEntry (ColorRGBA* p_entry, LegoU32 p_index)
205205{
206206 PALETTEENTRY entry;
207207 LegoChar buffer[c_errorBufferSize];
@@ -219,7 +219,7 @@ void PearlDew0x0c::GetEntry(ColorRGBA* p_entry, LegoU32 p_index)
219219}
220220
221221// FUNCTION: GOLDP 0x10007620
222- void PearlDew0x0c ::CopyEntriesFrom (IPalette0x4* p_source)
222+ void DirectDrawPalette ::CopyEntriesFrom (IPalette0x4* p_source)
223223{
224224 ColorRGBA entry;
225225 LegoChar buffer[c_errorBufferSize];
@@ -241,7 +241,7 @@ void PearlDew0x0c::CopyEntriesFrom(IPalette0x4* p_source)
241241}
242242
243243// FUNCTION: GOLDP 0x100076d0
244- LegoS32 PearlDew0x0c ::FindEntry (const ColorRGBA& p_entry)
244+ LegoS32 DirectDrawPalette ::FindEntry (const ColorRGBA& p_entry)
245245{
246246 DWORD caps;
247247 LegoChar buffer[c_errorBufferSize];
@@ -280,19 +280,19 @@ LegoS32 PearlDew0x0c::FindEntry(const ColorRGBA& p_entry)
280280}
281281
282282// FUNCTION: GOLDP 0x100077b0
283- LegoU32 PearlDew0x0c ::GetFirstEntry ()
283+ LegoU32 DirectDrawPalette ::GetFirstEntry ()
284284{
285285 return m_firstEntry;
286286}
287287
288288// FUNCTION: GOLDP 0x100077c0
289- LegoU32 PearlDew0x0c ::GetEntryCount ()
289+ LegoU32 DirectDrawPalette ::GetEntryCount ()
290290{
291291 return m_entryCount;
292292}
293293
294294// FUNCTION: GOLDP 0x100077d0
295- LegoU32 PearlDew0x0c ::GetPaletteSize ()
295+ LegoU32 DirectDrawPalette ::GetPaletteSize ()
296296{
297297 if (m_entryCount == c_paletteEntries8BitUsable) {
298298 return c_paletteEntries8Bit;
@@ -302,7 +302,7 @@ LegoU32 PearlDew0x0c::GetPaletteSize()
302302}
303303
304304// STUB: GOLDP 0x100077f0
305- void PearlDew0x0c ::Set332PaletteEntries ()
305+ void DirectDrawPalette ::Set332PaletteEntries ()
306306{
307307 LegoChar buffer[c_errorBufferSize];
308308
0 commit comments