@@ -502,7 +502,10 @@ void Container::draw(SpriteBatch* spriteBatch, const Rectangle& clip, bool needs
}
if (!_visible)
+ {
+ _dirty = false;
return;
+ }
spriteBatch->start();
Control::drawBorder(spriteBatch, clip);
@@ -1132,7 +1132,10 @@ void Control::draw(SpriteBatch* spriteBatch, const Rectangle& clip, bool needsCl
drawBorder(spriteBatch, clip);
@@ -494,7 +494,10 @@ void Slider::draw(SpriteBatch* spriteBatch, const Rectangle& clip, bool needsCle