Skip to content

Commit

Permalink
Fixed 2:1 display TSV view mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jun 21, 2024
1 parent 564074b commit 812d5c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tsvView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ let renderImage = function () {
let data = resourceViewer.data(rsrcID.data || resourceViewer.keys()[0]);
canvas.width = data.width * pxSize.data;
canvas.height = data.height * pxSize.data;
if (loadType.data == 1) {
canvas.width = canvas.width << 1;
};
if (data) {
renderSect(data, 0, 0, data.width, data.height, pxSize.data, loadType.data == 1);
};
Expand Down

0 comments on commit 812d5c3

Please sign in to comment.