mirror of
https://github.com/wiiu-env/libgui.git
synced 2024-11-14 04:15:07 +01:00
GuiSwitch: Do not draw onImg and offImg when not visible (#11)
Co-authored-by: Maschell <Maschell@gmx.de>
This commit is contained in:
parent
9c1b9ba442
commit
62e2655b72
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user