diff --git a/source/gui/GuiSwitch.cpp b/source/gui/GuiSwitch.cpp index c396654..2fb0399 100644 --- a/source/gui/GuiSwitch.cpp +++ b/source/gui/GuiSwitch.cpp @@ -63,6 +63,10 @@ void GuiSwitch::setImageHighlighted(GuiImage *img) { } void GuiSwitch::draw(CVideo *v) { + if (!this->isVisible()) { + return; + } + GuiToggle::draw(v); if (getValue()) { if (onImg != NULL) {