mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 17:04:17 +00:00
Match TglD3DRMIMAGE::FillRowsOfTexture (#1300)
This commit is contained in:
committed by
GitHub
parent
724a566c2e
commit
3140ba73eb
@@ -411,7 +411,7 @@ public:
|
|||||||
|
|
||||||
Result CreateBuffer(int width, int height, int depth, void* pBuffer, int useBuffer);
|
Result CreateBuffer(int width, int height, int depth, void* pBuffer, int useBuffer);
|
||||||
void Destroy();
|
void Destroy();
|
||||||
void FillRowsOfTexture(int y, int height, char* content);
|
Result FillRowsOfTexture(int y, int height, char* content);
|
||||||
Result InitializePalette(int paletteSize, PaletteEntry* pEntries);
|
Result InitializePalette(int paletteSize, PaletteEntry* pEntries);
|
||||||
|
|
||||||
D3DRMIMAGE m_image;
|
D3DRMIMAGE m_image;
|
||||||
|
|||||||
@@ -129,10 +129,11 @@ Result TglD3DRMIMAGE::CreateBuffer(int width, int height, int depth, void* pBuff
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a1510
|
// FUNCTION: LEGO1 0x100a1510
|
||||||
void TglD3DRMIMAGE::FillRowsOfTexture(int y, int height, char* pContent)
|
Result TglD3DRMIMAGE::FillRowsOfTexture(int y, int height, char* pContent)
|
||||||
{
|
{
|
||||||
// The purpose is clearly this but I can't get the assembly to line up.
|
// The purpose is clearly this but I can't get the assembly to line up.
|
||||||
memcpy((char*) m_image.buffer1 + (y * m_image.bytes_per_line), pContent, height * m_image.bytes_per_line);
|
memcpy((char*) m_image.buffer1 + (y * m_image.bytes_per_line), pContent, height * m_image.bytes_per_line);
|
||||||
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a1550
|
// FUNCTION: LEGO1 0x100a1550
|
||||||
|
|||||||
Reference in New Issue
Block a user