Skip to content

Commit

Permalink
Fixed wrong statistics positioning and window size
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeki The Monkey committed Jul 9, 2021
1 parent fb2a4cb commit b49bf06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ void Application::moveWindow()
unsigned int Application::getWindowWidth()
{
return Settings::ButtonTextureSize.x * Settings::ButtonAmount +
(Settings::ButtonAmount - 1) * Settings::ButtonDistance +
Settings::SpaceBetweenButtonsAndStatistics + Settings::WindowBonusSizeLeft +
Settings::WindowBonusSizeRight + 1;
}
Expand Down
3 changes: 2 additions & 1 deletion Source/Statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ void Statistics::setupString(ID id, const std::string& name)

unsigned int Statistics::getStatisticsWidth()
{
return (Settings::ButtonAmount) * Settings::ButtonTextureSize.x +
return Settings::ButtonAmount * Settings::ButtonTextureSize.x +
(Settings::ButtonAmount - 1) * Settings::ButtonDistance +
Settings::SpaceBetweenButtonsAndStatistics + Settings::WindowBonusSizeLeft;
}

Expand Down

0 comments on commit b49bf06

Please sign in to comment.