aboutsummaryrefslogtreecommitdiff
path: root/src/Tabs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tabs.cpp')
-rw-r--r--src/Tabs.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Tabs.cpp b/src/Tabs.cpp
index 01e5d2d..b671262 100644
--- a/src/Tabs.cpp
+++ b/src/Tabs.cpp
@@ -72,9 +72,11 @@ namespace QuickMedia {
tab_background_width = std::floor(width_per_tab - tab_margin_x*2.0f);
background.set_size(sf::Vector2f(tab_background_width, tab_height));
- shade.setSize(sf::Vector2f(width, get_shade_height()));
- shade.setPosition(std::floor(pos.x), std::floor(pos.y));
- window.draw(shade);
+ if(shade_color != sf::Color::Transparent) {
+ shade.setSize(sf::Vector2f(width, get_shade_height()));
+ shade.setPosition(std::floor(pos.x), std::floor(pos.y));
+ window.draw(shade);
+ }
float scroll_fixed = scroll + (tab_offset * width_per_tab);