summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
index be8482d..db53230 100644
--- a/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
+++ b/core/src/com/ilotterytea/maxoning/ui/MovingChessBackground.java
@@ -62,8 +62,8 @@ public class MovingChessBackground {
float totalDWidth = 0, totalDHeight = 0;
for (Drawable drawable : drawables) {
- totalDWidth += drawable.getMinWidth();
- totalDHeight += drawable.getMinHeight();
+ totalDWidth += 64;
+ totalDHeight += 64;
}
totalDWidth = totalDWidth / drawables.size();
@@ -81,6 +81,7 @@ public class MovingChessBackground {
for (int w = -1; w < width / totalDWidth; w++) {
if (DIndex + 1 > drawables.size()) DIndex = 0;
Image tile = new Image(drawables.get(DIndex++));
+ tile.setSize(64f, 64f);
tile.setPosition(tile.getWidth() * w, tile.getHeight() * h);