mirror of
https://github.com/wiiu-env/libgui.git
synced 2025-01-29 16:16:49 +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) {
|
void GuiSwitch::draw(CVideo *v) {
|
||||||
|
if (!this->isVisible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GuiToggle::draw(v);
|
GuiToggle::draw(v);
|
||||||
if (getValue()) {
|
if (getValue()) {
|
||||||
if (onImg != NULL) {
|
if (onImg != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user