Skip to content

Commit

Permalink
KYRA: Fix Unused Variable GCC Compiler Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Aug 12, 2023
1 parent e5be10c commit c8a9a78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion engines/kyra/engine/chargen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,6 @@ void CharacterGenerator::processNameInput(int index, int textColor) {
_screen->drawShape(0, _nameLabelsZH[index], _chargenNameFieldX[index] & ~7, _chargenNameFieldY[index] - 5);
_screen->printShadedText(_characters[index].name, _chargenNameFieldX[index] + ((62 - (strlen(_characters[index].name) << 3)) >> 1), _chargenNameFieldY[index] - 4, textColor, 0, _vm->guiSettings()->colors.guiColorBlack);
} else {
int xOffs = ((60 - _screen->getTextWidth(_characters[index].name)) >> 1);
_screen->fillRect(_chargenNameFieldX[index], _chargenNameFieldY[index], _chargenNameFieldX[index] + 59, _chargenNameFieldY[index] + 5, _vm->guiSettings()->colors.guiColorBlack);
_screen->printText(_characters[index].name, _chargenNameFieldX[index] + ((60 - _screen->getTextWidth(_characters[index].name)) >> 1), _chargenNameFieldY[index], textColor, 0);
}
Expand Down

0 comments on commit c8a9a78

Please sign in to comment.