X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/FreeShisen/blobdiff_plain/e590adeb385d29a0799fb0371bedc14618cd6735..07fd4c9f7cc4b5ba98994f9c153213adf7c01a44:/src/de/cwde/freeshisen/ShisenShoView.java diff --git a/src/de/cwde/freeshisen/ShisenShoView.java b/src/de/cwde/freeshisen/ShisenShoView.java index b802f0d..9207d3d 100644 --- a/src/de/cwde/freeshisen/ShisenShoView.java +++ b/src/de/cwde/freeshisen/ShisenShoView.java @@ -108,10 +108,10 @@ class ShisenShoView extends SurfaceView implements SurfaceHolder.Callback { this.cstate=cstate; } - private void loadTileset() { + public void loadTileset() { BitmapFactory.Options ops = new BitmapFactory.Options(); ops.inScaled = false; - Bitmap tileset = BitmapFactory.decodeResource(getResources(), R.drawable.traditional, ops); + Bitmap tileset = BitmapFactory.decodeResource(getResources(), app.tilesetid, ops); tileset.setDensity(Bitmap.DENSITY_NONE); // The tile set has 4 rows x 9 columns