Skip to content

Commit

Permalink
Fixed font bitmap rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 21, 2024
1 parent 812d5c3 commit 7299857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tsvView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ let renderImage = function () {
let data = resourceViewer.data(rsrcID.data || resourceViewer.keys()[0]);
canvas.width = data.width * pxSize.data;
canvas.height = data.height * pxSize.data;
console.debug(data);
if (loadType.data == 1) {
canvas.width = canvas.width << 1;
};
Expand Down Expand Up @@ -105,13 +106,14 @@ let loadResource = async () => {
};
rsrcID.appendChild(newChoice);
});
renderImage();
//renderImage();
};
};
$e("#openImage").addEventListener("mouseup", async () => {
resourceBlob = await (await fileOpen(propsTsv)).text();
await loadResource();
});
loadType.addEventListener("change", loadResource);

rType.addEventListener("change", renderImage);
rsrcID.addEventListener("change", renderImage);
Expand Down

0 comments on commit 7299857

Please sign in to comment.