fix: remove duplicate function, closing #39

This commit is contained in:
javl
2021-06-11 10:36:22 +02:00
parent fc6f911516
commit 101464d201
+1 -15
View File
@@ -372,7 +372,7 @@
</div>
<script type="text/javascript">
<script type="text/javascript">
var ConversionFunctions = {
// Output the image as a string for horizontally drawing displays
horizontal1bit: function (data, canvasWidth, canvasHeight){
@@ -685,20 +685,6 @@
}
}
function updateDrawMode(elm) {
var note = document.getElementById("note1bit");
if(elm.value == "horizontal1bit" || elm.value == "vertical1bit") {
note.style.display = "block";
} else {
note.style.display = "none";
}
var conversionFunction = ConversionFunctions[elm.value];
if(conversionFunction) {
settings.conversionFunction = conversionFunction;
}
}
// Make the canvas black and white
function blackAndWhite(canvas, ctx){
var imageData = ctx.getImageData(0,0,canvas.width, canvas.height);