Skip to content

Commit

Permalink
[fixed] Window not respecting actor color, issue 548.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan.sweet committed Oct 30, 2011
1 parent f5e1dcd commit ce004fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public void draw (SpriteBatch batch, float parentAlpha) {
batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);
backgroundPatch.draw(batch, 0, 0, width, height);
float textY = height - (int)(backgroundPatch.getTopHeight() / 2) + (int)(textBounds.height / 2);
titleFont.setColor(color.r * titleFontColor.r, color.g * titleFontColor.g, color.b * titleFontColor.b, color.a
* parentAlpha * titleFontColor.a);
titleFont.setColor(titleFontColor.r, titleFontColor.g, titleFontColor.b, titleFontColor.a * parentAlpha);
titleFont.drawMultiLine(batch, title, (int)(width / 2), textY, 0, HAlignment.CENTER);
batch.flush();
Expand Down

0 comments on commit ce004fa

Please sign in to comment.