Skip to content

Commit 6bfd26b

Browse files
authored
Merge pull request #108 from Cologler/patch-1
fixed #105
2 parents 470eb93 + 22fda2d commit 6bfd26b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

QuickLook/Helpers/WindowHelper.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ private static void TransformToPixels(this Visual visual,
8080
matrix = src.CompositionTarget.TransformToDevice;
8181
}
8282

83-
pixelX = (int) (matrix.M11 * unitX);
84-
pixelY = (int) (matrix.M22 * unitY);
83+
pixelX = (int)Math.Round((matrix.M11 * unitX));
84+
pixelY = (int)Math.Round((matrix.M22 * unitY));
8585
}
8686

8787
internal static bool IsForegroundWindowBelongToSelf()
@@ -149,4 +149,4 @@ public POINT(int x, int y)
149149
}
150150
}
151151
}
152-
}
152+
}

0 commit comments

Comments
 (0)