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

Method Mouse_DrawCursor

Source/Fodder.cpp:3778–3792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3776}
3777
3778void cFodder::Mouse_DrawCursor() {
3779 if (mParams->mDisableVideo)
3780 return;
3781
3782 mVideo_Draw_PosX = (mMouseX + mMouseX_Offset) + SIDEBAR_WIDTH;
3783 mVideo_Draw_PosY = (mMouseY + mMouseY_Offset) + 12;
3784
3785 if (mMouseSpriteNew >= 0) {
3786 mMouseSpriteCurrent = mMouseSpriteNew;
3787 mMouseSpriteNew = -1;
3788 }
3789
3790 if (mGraphics)
3791 mGraphics->Mouse_DrawCursor();
3792}
3793
3794void cFodder::Sprite_Draw_Frame(sSprite* pDi, int16 pSpriteType, int16 pFrame, cSurface *pDestination) {
3795 auto SheetData = Sprite_Get_Sheet(pSpriteType, pFrame);

Callers 1

CycleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected