MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / MapOverview_Render_Tiles

Method MapOverview_Render_Tiles

Source/PC/Graphics_PC.cpp:344–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void cGraphics_PC::MapOverview_Render_Tiles( uint16 pTile, uint16 pDestX, uint16 pDestY ) {
345 uint8* Target = mFodder->mSurfaceMapOverview->GetSurfaceBuffer();
346
347 pDestX *= 16;
348
349 Target += (pDestY * 16) * mFodder->mSurfaceMapOverview->GetWidth();
350 Target += pDestX;
351
352 uint8* TilePtr = mTile_Gfx_Ptrs[pTile];
353
354 for (uint16 i = 0; i < 16; ++i) {
355
356 memcpy(Target, TilePtr, 16);
357
358 TilePtr += 320;
359 Target += mFodder->mSurfaceMapOverview->GetWidth();
360 }
361}
362
363void cGraphics_PC::Map_Load_Resources() {
364 PaletteLoad( mFodder->mTile_BaseBlk->data() + 0xFA00, 0x80, 0x00 );

Callers 1

Map_Overview_PrepareMethod · 0.45

Calls 2

GetSurfaceBufferMethod · 0.80
GetWidthMethod · 0.80

Tested by

no test coverage detected