Skip to content

Commit

Permalink
Renamed local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Jul 15, 2024
1 parent e0be96e commit ff8064c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hci/groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ class GroupButton : public DynamicIntFancyButton
{
displayIMD(AtlasImage(), ImdObject::DroidTemplate(&(groupInfo->displayDroidTemplate)), xOffset, yOffset);
groupCountLabel->setString(WzString::fromUtf8(astringf("%u", groupInfo->numberInGroup)));
int32_t xOffset = 0;
int32_t xNumberOffset = 0;
const uint32_t xFitNumberInTheBox = 16;
if (groupCountLabel->getMaxLineWidth() > xFitNumberInTheBox)
{
xOffset -= groupCountLabel->getMaxLineWidth() - xFitNumberInTheBox;
xNumberOffset -= groupCountLabel->getMaxLineWidth() - xFitNumberInTheBox;
}
groupCountLabel->move(
OBJ_TEXTX + 40 + xOffset - groupDamagedCountLabel->getMaxLineWidth(),
OBJ_TEXTX + 40 + xNumberOffset - groupDamagedCountLabel->getMaxLineWidth(),
groupCountLabel->y()
);
}
Expand Down

0 comments on commit ff8064c

Please sign in to comment.