Merge branch 'master' of /home/ydeng/git/RhythmBullet

This commit is contained in:
2018-09-06 18:30:11 -05:00
4 changed files with 11 additions and 12 deletions

View File

@@ -159,12 +159,13 @@ public class ScrollingText extends Widget {
coords.x = getX();
coords.y = getY();
getStage().stageToScreenCoordinates(coords);
clipBounds.setX(coords.x+1);
clipBounds.setY(coords.y - 0.5f*getHeight());
getStage().calculateScissors(clipBounds, scissors);
batch.flush();
getStage().calculateScissors(clipBounds, scissors);
if (ScissorStack.pushScissors(scissors)) {
font.draw(batch, text1, coords.x + text1Offset, coords.y + getFontHeight() + 4);
font.draw(batch, text2, coords.x + text2Offset, coords.y + getFontHeight() + 4);