| 10108 | } |
| 10109 | |
| 10110 | int16 cFodder::Service_Sprite_Draw(int16& pSpriteType, int16& pFrame, int16& pX, int16& pY) { |
| 10111 | auto SheetData = Sprite_Get_Sheet(pSpriteType, pFrame); |
| 10112 | |
| 10113 | mVideo_Draw_PaletteIndex = SheetData->mPalleteIndex & 0xFF; |
| 10114 | mVideo_Draw_FrameDataPtr = SheetData->GetGraphicsPtr(); |
| 10115 | |
| 10116 | mVideo_Draw_PosX = pX + 0x10; |
| 10117 | mVideo_Draw_PosY = pY + 0x10; |
| 10118 | |
| 10119 | |
| 10120 | mVideo_Draw_Columns = SheetData->mColCount; |
| 10121 | mVideo_Draw_Rows = SheetData->mRowCount; |
| 10122 | |
| 10123 | if (!Service_Sprite_OnScreen_Check()) { |
| 10124 | if (mVersionCurrent->mPlatform == ePlatform::Amiga) |
| 10125 | mGraphics->Video_Draw_16(mFont_Service_PalleteIndex_Amiga); |
| 10126 | else |
| 10127 | mGraphics->Video_Draw_8(0, mFont_Service_PalleteIndex); |
| 10128 | |
| 10129 | return 1; |
| 10130 | } |
| 10131 | return 0; |
| 10132 | } |
| 10133 | |
| 10134 | int16 cFodder::Service_Sprite_OnScreen_Check() { |
| 10135 | int16 ax; |
nothing calls this directly
no test coverage detected