OSDN Git Service

closes #800
authorNathanSweet <nathan.sweet@gmail.com>
Sat, 5 Oct 2013 17:51:07 +0000 (19:51 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Sat, 5 Oct 2013 17:51:07 +0000 (19:51 +0200)
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Window.java

index 1e95ba3..c3e246d 100644 (file)
@@ -156,8 +156,8 @@ public class Window extends Table {
                        Color color = getColor();\r
                        batch.setColor(color.r, color.g, color.b, color.a * parentAlpha);\r
                        Stage stage = getStage();\r
-                       stageToLocalCoordinates(/* in/out */tmpPosition.set(0, -1));\r
-                       stageToLocalCoordinates(/* in/out */tmpSize.set(stage.getWidth() + 1, stage.getHeight()));\r
+                       stageToLocalCoordinates(/* in/out */tmpPosition.set(0, 0));\r
+                       stageToLocalCoordinates(/* in/out */tmpSize.set(stage.getWidth(), stage.getHeight()));\r
                        style.stageBackground.draw(batch, x + tmpPosition.x, y + tmpPosition.y, x + tmpSize.x, y + tmpSize.y);\r
                }\r
 \r