summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Bg.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Bg.java b/core/src/ch/asynk/rustanddust/ui/Bg.java
index cac3ddc..72fdd2a 100644
--- a/core/src/ch/asynk/rustanddust/ui/Bg.java
+++ b/core/src/ch/asynk/rustanddust/ui/Bg.java
@@ -5,13 +5,19 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class Bg extends Widget
{
+ private static float SCALE = 1.0f;
private TextureRegion region;
public Bg(TextureRegion region)
{
super();
this.region = region;
- setPosition(0, 0, region.getRegionWidth(), region.getRegionHeight());
+ setPosition(0, 0, region.getRegionWidth() * SCALE, region.getRegionHeight() * SCALE);
+ }
+
+ public static void setScale(float scale)
+ {
+ SCALE = scale;
}
@Override