Skip to content

Commit

Permalink
Match TglD3DRMIMAGE::FillRowsOfTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles committed Dec 28, 2024
1 parent 29e7721 commit e4f97f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LEGO1/tgl/d3drm/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ class TglD3DRMIMAGE {

Result CreateBuffer(int width, int height, int depth, void* pBuffer, int useBuffer);
void Destroy();
void FillRowsOfTexture(int y, int height, char* content);
Result FillRowsOfTexture(int y, int height, char* content);
Result InitializePalette(int paletteSize, PaletteEntry* pEntries);

D3DRMIMAGE m_image;
Expand Down
3 changes: 2 additions & 1 deletion LEGO1/tgl/d3drm/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ Result TglD3DRMIMAGE::CreateBuffer(int width, int height, int depth, void* pBuff
}

// 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.
memcpy((char*) m_image.buffer1 + (y * m_image.bytes_per_line), pContent, height * m_image.bytes_per_line);
return Success;
}

// FUNCTION: LEGO1 0x100a1550
Expand Down

0 comments on commit e4f97f6

Please sign in to comment.