use flipped main menu background as playfield image if no image present

This commit is contained in:
yugecin 2018-07-20 20:12:49 +02:00
parent a1ce2c7e90
commit 8d109df629
No known key found for this signature in database
GPG Key ID: 2C5AC035A7068E44
3 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

After

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 KiB

After

Width:  |  Height:  |  Size: 116 B

View File

@ -90,7 +90,9 @@ public enum GameImage {
PLAYFIELD ("playfield", "png|jpg", false, false) {
@Override
protected Image process_sub(Image img, int w, int h) {
img.setAlpha(0.7f);
if (img.getWidth() == 1 && img.getHeight() == 1) {
img = MENU_BG.getImage().getFlippedCopy(/*h*/ false, /*v*/ true);
}
return img.getScaledCopy(w, h);
}
},