diff options
Diffstat (limited to 'src/ChannelSidePanel.cpp')
-rw-r--r-- | src/ChannelSidePanel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChannelSidePanel.cpp b/src/ChannelSidePanel.cpp index 8d0b714..89a550a 100644 --- a/src/ChannelSidePanel.cpp +++ b/src/ChannelSidePanel.cpp @@ -33,7 +33,7 @@ namespace dchat { float posY = ChannelTopPanel::getHeight(); auto windowSize = window.getSize(); - sf::RectangleShape rect(sf::Vector2f(getWidth(), windowSize.y)); + sf::RectangleShape rect(sf::Vector2f(getWidth(), windowSize.y - ChannelTopPanel::getHeight())); rect.setPosition(0.0f, posY); rect.setFillColor(ColorScheme::getPanelColor()); window.draw(rect); @@ -68,6 +68,6 @@ namespace dchat float ChannelSidePanel::getWidth() { - return WIDTH * Settings::getScaling(); + return floor(WIDTH * Settings::getScaling()); } } |