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

Method Mouse_DrawCursor

Source/Amiga/Graphics_Amiga.cpp:151–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void cGraphics_Amiga::Mouse_DrawCursor() {
152 const sSpriteSheet_pstuff* di = &mSpriteSheet_PStuff[mFodder->mMouseSpriteCurrent];
153
154 mFodder->mVideo_Draw_Columns = di->mColumns >> 3;
155 mFodder->mVideo_Draw_Rows = di->mRows;
156
157 int16 ax = di->mY & 0xFF;
158 int16 bx = (di->mX >> 3) & -2;
159
160 ax <<= 3;
161 int16 d1 = ax;
162
163 ax <<= 2;
164 ax += d1;
165
166 mFodder->mVideo_Draw_FrameDataPtr = di->GetGraphicsPtr(ax + bx);
167 Video_Draw_8();
168}
169
170bool cGraphics_Amiga::Sprite_OnScreen_Check() {
171

Callers

nothing calls this directly

Calls 1

GetGraphicsPtrMethod · 0.80

Tested by

no test coverage detected