Skip to content

Commit

Permalink
[ServerConnectState|TitleScreenState] Small fixes for low resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jun 26, 2020
1 parent 1f90592 commit cc2e0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/client/states/ServerConnectState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void ServerConnectState::updateWidgetPosition() {

m_menuWidget.setPosition(
Config::screenWidth / 2.0f - m_menuWidget.getGlobalBounds().sizeX / 2,
Config::screenHeight - 110 * Config::guiScale
Config::screenHeight - 0.10 * Config::screenHeight * Config::guiScale
);

m_errorText.setPosition(
Expand Down
2 changes: 1 addition & 1 deletion source/client/states/TitleScreenState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void TitleScreenState::updateWidgetPosition() {

m_titleText.setPosition(
Config::screenWidth / 2.0f - m_titleText.getSize().x * m_titleText.getScale().x / 2.0f,
50 * Config::guiScale
0.04 * Config::screenHeight * Config::guiScale
);
m_versionText.setPosition(Config::guiScale, Config::screenHeight - m_versionText.getSize().y * Config::guiScale);
m_copyrightText.setPosition(
Expand Down

0 comments on commit cc2e0fb

Please sign in to comment.