mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 12:15:42 +00:00
update settings['screenWidth'] when convert bytestring into an image
This commit is contained in:
@@ -576,6 +576,8 @@
|
||||
var canvas = document.createElement("canvas");
|
||||
canvas.width = parseInt(document.getElementById("text-input-width").value);
|
||||
canvas.height = parseInt(document.getElementById("text-input-height").value);
|
||||
settings["screenWidth"] = canvas.width;
|
||||
settings["screenHeight"] = canvas.height;
|
||||
|
||||
if(canvasContainer.children.length) {
|
||||
canvasContainer.removeChild(canvasContainer.firstChild);
|
||||
|
||||
Reference in New Issue
Block a user