Skip to content

Commit

Permalink
Must scale unrotated image to draw it quickly.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuffington committed May 22, 2021
1 parent 4969d86 commit 3654e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/georgia-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,7 @@ function disposeCDImg(cdImage) {
function rotateImg(img, w, h, degrees) {
/** @type {GdiBitmap} */ let rotatedImg;
if (degrees === 0) {
rotatedImg = img.Clone(0, 0, img.Width, img.Height);
rotatedImg = img.Clone(0, 0, img.Width, img.Height).Resize(w, h);
} else {
rotatedImg = gdi.CreateImage(w, h);
const gotGraphics = rotatedImg.GetGraphics();
Expand Down

0 comments on commit 3654e2d

Please sign in to comment.