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

Method GUI_Draw_Frame_8

Source/GUI_Element.cpp:947–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945
946
947void cFodder::GUI_Draw_Frame_8(int32 pSpriteType, int32 pFrame, const size_t pPositionX, const size_t pPositionY) {
948 auto SheetData = Sprite_Get_Sheet(pSpriteType, pFrame);
949
950 mVideo_Draw_PaletteIndex = SheetData->mPalleteIndex & 0xFF;
951 mVideo_Draw_FrameDataPtr = SheetData->GetGraphicsPtr();
952
953 mVideo_Draw_PosX = (int16)(pPositionX + 0x10);
954 mVideo_Draw_PosY = (int16)(pPositionY + 0x10);
955 mVideo_Draw_Columns = SheetData->mColCount;
956 mVideo_Draw_Rows = SheetData->mRowCount;
957
958 if (SheetData->mRowCount > mGUI_Draw_LastHeight)
959 mGUI_Draw_LastHeight = SheetData->mRowCount;
960
961 if (Sprite_OnScreen_Check())
962 mGraphics->Video_Draw_8();
963
964}
965
966void cFodder::GUI_Draw_Frame_16(int16 pSpriteType, int16 pFrame, const size_t pPosX, const size_t pPosY) {
967 auto SheetData = Sprite_Get_Sheet(pSpriteType, pFrame);

Callers 2

Recruit_Draw_HomeAwayMethod · 0.80
Recruit_Draw_HomeAwayMethod · 0.80

Calls 2

GetGraphicsPtrMethod · 0.80
Video_Draw_8Method · 0.45

Tested by

no test coverage detected