summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/List.java1
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Root.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/List.java b/core/src/ch/asynk/gdx/boardgame/ui/List.java
index 3ed5985..3e050a6 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/List.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/List.java
@@ -94,7 +94,6 @@ public class List extends Element
@Override public void draw(Batch batch)
{
if (!visible) return;
-
if (tainted) computeGeometry();
float x = getInnerX();
float y = getInnerTop();
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Root.java b/core/src/ch/asynk/gdx/boardgame/ui/Root.java
index 96ea218..c84287b 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Root.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Root.java
@@ -55,6 +55,7 @@ public class Root extends Element
@Override public void draw(Batch batch)
{
+ if (!visible) return;
if (tainted) computeGeometry();
children.forEach( c -> c.draw(batch) );
}