TWINE: removed uused parameter

This commit is contained in:
Martin Gerhardy 2023-08-14 20:56:36 +02:00
parent 18b8335fea
commit a05b53798c
2 changed files with 4 additions and 5 deletions

View File

@ -465,12 +465,12 @@ bool Grid::initCellingGrid(int32 index) { // IncrustGrm
}
bool Grid::drawBrick(int32 index, int32 posX, int32 posY) {
return drawBrickSprite(index, posX, posY, _brickTable[index], false);
return drawBrickSprite(posX, posY, _brickTable[index], false);
}
bool Grid::drawSprite(int32 index, int32 posX, int32 posY, const uint8 *ptr) { // AffGraph
ptr = ptr + READ_LE_INT32(ptr + index * 4);
return drawBrickSprite(index, posX, posY, ptr, true);
return drawBrickSprite(posX, posY, ptr, true);
}
bool Grid::drawSprite(int32 posX, int32 posY, const SpriteData &ptr, int spriteIndex) {
@ -497,7 +497,7 @@ bool Grid::drawSprite(int32 posX, int32 posY, const SpriteData &ptr, int spriteI
}
// WARNING: Rewrite this function to have better performance
bool Grid::drawBrickSprite(int32 index, int32 posX, int32 posY, const uint8 *ptr, bool isSprite) {
bool Grid::drawBrickSprite(int32 posX, int32 posY, const uint8 *ptr, bool isSprite) {
if (_engine->_debugGrid->_disableGridRendering) {
return false;
}

View File

@ -253,13 +253,12 @@ public:
/**
* Draw sprite or bricks in the screen according with the type
* @param index sprite index to draw
* @param posX sprite X position to draw
* @param posY sprite Y position to draw
* @param ptr sprite buffer pointer to draw
* @param isSprite allows to identify if the sprite to display is brick or a single sprite
*/
bool drawBrickSprite(int32 index, int32 posX, int32 posY, const uint8 *spritePtr, bool isSprite);
bool drawBrickSprite(int32 posX, int32 posY, const uint8 *spritePtr, bool isSprite);
/**
* Get block library