Skip to content

Commit

Permalink
TWINE: removed uused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Aug 14, 2023
1 parent 18b8335 commit a05b537
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions engines/twine/scene/grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions engines/twine/scene/grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,12 @@ class Grid {

/**
* 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
Expand Down

0 comments on commit a05b537

Please sign in to comment.