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

Method GUI_Draw_Frame_16

Source/GUI_Element.cpp:966–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
968
969 mVideo_Draw_PaletteIndex = SheetData->mPalleteIndex & 0xFF;
970 mVideo_Draw_FrameDataPtr = SheetData->GetGraphicsPtr();
971
972 mVideo_Draw_PosX = (int16)(pPosX + 0x10);
973 mVideo_Draw_PosY = (int16)(pPosY + 0x10);
974 mVideo_Draw_Columns = SheetData->mColCount;
975 mVideo_Draw_Rows = SheetData->mRowCount;
976 mVideo_Draw_ColumnsMax = 0x140;
977
978 if (Sprite_OnScreen_Check())
979 mGraphics->Video_Draw_16();
980}
981
982void cFodder::GUI_Render_Text_Centred(const char* pText, const size_t pPosY) {
983

Callers

nothing calls this directly

Calls 2

GetGraphicsPtrMethod · 0.80
Video_Draw_16Method · 0.45

Tested by

no test coverage detected