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

Method Sidebar_Copy_To_Surface

Source/PC/Graphics_PC.cpp:461–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void cGraphics_PC::Sidebar_Copy_To_Surface( int16 pStartY, cSurface* pSurface) {
462 uint8* Buffer = mSurface->GetSurfaceBuffer();
463
464 if (pSurface)
465 Buffer = pSurface->GetSurfaceBuffer();
466
467 uint8* si = (uint8*) mFodder->mSidebar_Screen_Buffer;
468
469 Buffer += (16 * mSurface->GetWidth()) + 16;
470
471 for (unsigned int Y = 17 + pStartY; Y < mSurface->GetHeight(); ++Y) {
472
473 for (unsigned int X = 0; X < 0x30; ++X) {
474
475 Buffer[X] = *si++;
476 }
477
478 Buffer += mSurface->GetWidth();
479 }
480}
481
482void cGraphics_PC::Sidebar_Copy_Sprite_To_ScreenBufPtr(int16 pSpriteType, size_t pX, size_t pY) {
483 const sSpriteSheet_pstuff* SpriteSheet = &mSpriteSheet_PStuff[pSpriteType];

Callers 4

Phase_PausedMethod · 0.45
Interrupt_RedrawMethod · 0.45
Recruit_LoopMethod · 0.45

Calls 3

GetSurfaceBufferMethod · 0.80
GetWidthMethod · 0.80
GetHeightMethod · 0.80

Tested by

no test coverage detected