OSDN Git Service

Window, prevent drawing title at fraction of pixel.
authorNathanSweet <nathan.sweet@gmail.com>
Tue, 21 Aug 2012 06:08:34 +0000 (23:08 -0700)
committerNathanSweet <nathan.sweet@gmail.com>
Tue, 21 Aug 2012 06:08:34 +0000 (23:08 -0700)
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Window.java

index 4501c04..fc8f789 100644 (file)
@@ -150,6 +150,8 @@ public class Window extends Table {
                        else\r
                                y -= (getPadTop() - bounds.height) / 2;\r
                }\r
+               x = Math.round(x);\r
+               y = Math.round(y);\r
                titleCache.setColor(Color.tmp.set(getColor()).mul(style.titleFontColor));\r
                titleCache.setPosition(x, y);\r
                titleCache.draw(batch, parentAlpha);\r