MakeTiles: find and use 128x128 versions of tile images
This commit is contained in:
parent
f17989412e
commit
7cfe0c1dc5
1 changed files with 11 additions and 0 deletions
|
@ -403,6 +403,17 @@ public class MakeTiles
|
||||||
TILE_SIZE);
|
TILE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (TILE_SIZE < 128) {
|
||||||
|
pngFile = new File(fileName+"_128x128.png");
|
||||||
|
if (pngFile.exists()) {
|
||||||
|
ImageIcon ii = new ImageIcon(pngFile.toString());
|
||||||
|
return new SourceImage(
|
||||||
|
ii.getImage(),
|
||||||
|
128,
|
||||||
|
TILE_SIZE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pngFile = new File(fileName+".png");
|
pngFile = new File(fileName+".png");
|
||||||
if (pngFile.exists()) {
|
if (pngFile.exists()) {
|
||||||
ImageIcon ii = new ImageIcon(pngFile.toString());
|
ImageIcon ii = new ImageIcon(pngFile.toString());
|
||||||
|
|
Reference in a new issue