Merge pull request #72 from slimer37/patch-1

Fix minor errors when using Arduino single bitmap
This commit is contained in:
Jasper van Loenen
2025-01-03 10:22:28 +01:00
committed by GitHub
+3 -2
View File
@@ -936,7 +936,7 @@ function generateOutputString() {
outputString = outputString.replace(/,\s*$/, '');
outputString = `const ${getImageType()} ${
+getIdentifier()
getIdentifier()
} [] PROGMEM = {`
+ `\n${outputString}\n};`;
break;
@@ -948,7 +948,7 @@ function generateOutputString() {
images.each((image) => {
code = imageToString(image);
code = `\t${code.split('\n').join('\n\t')}\n`;
comment = `\t// '${image.glyph}, ${image.canvas.width}x${image.canvas.height}px\n`;
comment = `\t// '${image.glyph}', ${image.canvas.width}x${image.canvas.height}px\n`;
outputString += comment + code;
if (image.glyph.length === 1) {
useGlyphs++;
@@ -1060,6 +1060,7 @@ function updateDrawMode(elm) {
if (conversionFunction) {
settings.conversionFunction = conversionFunction;
}
updateAllImages();
}
// Updates Arduino code check-box