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

Method Mouse_DrawCursor

Source/PC/Graphics_PC.cpp:119–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void cGraphics_PC::Mouse_DrawCursor() {
120
121 const sSpriteSheet_pstuff* di = &mSpriteSheet_PStuff[mFodder->mMouseSpriteCurrent];
122
123 mFodder->mVideo_Draw_Columns = di->mColumns;
124 mFodder->mVideo_Draw_Rows = di->mRows;
125
126 int16 ax = di->mY * 160;
127 int16 bx = di->mX >> 1;
128
129 mFodder->mVideo_Draw_FrameDataPtr = di->GetGraphicsPtr(ax +bx);
130 mFodder->mVideo_Draw_PaletteIndex = 0xF0;
131
132 Video_Draw_8();
133}
134
135void cGraphics_PC::SetActiveSpriteSheet( eGFX_Types pSpriteType ) {
136

Callers

nothing calls this directly

Calls 1

GetGraphicsPtrMethod · 0.80

Tested by

no test coverage detected