diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/RoundedRectangle.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/RoundedRectangle.cpp b/src/RoundedRectangle.cpp index 735c182..33d7d64 100644 --- a/src/RoundedRectangle.cpp +++ b/src/RoundedRectangle.cpp @@ -8,14 +8,12 @@ namespace QuickMedia { radius(radius), pos(0.0f, 0.0f), size(size), rounded_rectangle_shader(rounded_rectangle_shader), band_color(sf::Color::Transparent) { assert(rounded_rectangle_shader); + set_color(color); vertices[0].texCoords = sf::Vector2f(0.0f, 0.0f); vertices[1].texCoords = sf::Vector2f(1.0f, 0.0f); vertices[2].texCoords = sf::Vector2f(1.0f, 1.0f); vertices[3].texCoords = sf::Vector2f(0.0f, 1.0f); - for(size_t i = 0; i < 4; ++i) - vertices[i].color = color; - const sf::Color shadow_color(0, 0, 0, 50); // Top |