Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d5030a4

Browse filesBrowse files
committed
Use abs() for NEAREST check
Inverting the image is also ok
1 parent 83f4bc9 commit d5030a4
Copy full SHA for d5030a4

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/_image_resample.h

Copy file name to clipboardExpand all lines: src/_image_resample.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ void resample(
879879

880880
if (params.interpolation != NEAREST &&
881881
params.is_affine &&
882-
params.affine.sx == 1.0 &&
883-
params.affine.sy == 1.0 &&
882+
abs(params.affine.sx) == 1.0 &&
883+
abs(params.affine.sy) == 1.0 &&
884884
params.affine.shx == 0.0 &&
885885
params.affine.shy == 0.0) {
886886
params.interpolation = NEAREST;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.