aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChannelTopPanel.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ChannelTopPanel.cpp b/src/ChannelTopPanel.cpp
index df69a17..bf122d2 100644
--- a/src/ChannelTopPanel.cpp
+++ b/src/ChannelTopPanel.cpp
@@ -53,11 +53,9 @@ namespace dchat
sf::Vector2f bottomLinePos(floor(ChannelSidePanel::getWidth() + PADDING_SIDE * Settings::getScaling()), getHeight() - BOTTOM_LINE_HEIGHT);
sf::Vector2f bottomLineSize(floor(windowSize.x - ChannelSidePanel::getWidth() - UsersSidePanel::getWidth() - PADDING_SIDE * Settings::getScaling() * 2.0f), BOTTOM_LINE_HEIGHT);
- LineColor lineColor
- {
- .sideColor = lineSideColor,
- .centerColor = lineCenterColor
- };
+ LineColor lineColor;
+ lineColor.sideColor = lineSideColor;
+ lineColor.centerColor = lineCenterColor;
drawGradientLine(bottomLinePos, bottomLineSize, lineColor, window);
Channel *currentChannel = Channel::getCurrent();