13
0
Fixed the non working orientation and palette feature.
Dieser Commit ist enthalten in:
Gimlao 2020-01-31 23:07:54 +01:00 committet von GitHub
Ursprung 0324196b5d
Commit d7ce7a2adf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -133,12 +133,12 @@ context.checkArgs(1, 3, "<image> <orientation> <palette>");
var f = context.getSafeOpenFile("drawings", argv[1], "png", ["png", "jpg", "jpeg", "bmp"]);
var sess = context.remember();
var upright = argv[2] === "v";
var upright = argv[2] == "v";
var colors = clothColors;
if(argv[3] === "opt") {
if(argv[3] == "opt") {
colors = clothColorsOpt;
player.print("Using optimized palette");
} else if(argv[3] === "optHD") {
} else if(argv[3] == "optHD") {
colors = clothColorsOptHD;
player.print("Using optimized HD palette");
}
@ -165,4 +165,4 @@ if (!f.exists()) {
}
}
}
}
}