calls super function of draw for scrolling text

This commit is contained in:
Harrison Deng 2018-09-07 11:24:15 -05:00
parent c1be4043d2
commit 75387661d2

View File

@ -153,8 +153,6 @@ public class ScrollingText extends Widget {
@Override
public void draw(Batch batch, float parentAlpha) {
validate();
if (background != null) {
background.draw(batch, getX(), getY(), getWidth(), getHeight());
}
@ -172,6 +170,8 @@ public class ScrollingText extends Widget {
batch.flush();
ScissorStack.popScissors();
}
super.draw(batch, parentAlpha);
}
@Override