Skip to content

Commit

Permalink
Fix antialias/smoothing for large zoom for horizontally flipped images
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreu committed Dec 29, 2023
1 parent 327126b commit b0775ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Fixed
* Scene Export: Selecting filename without file extension now
automatically appends the extension from the selected filter istead
of resulting in a confusing error message.
* The exemption from antialias/smoothing for images displayed at large
zoom now also works on images that are flipped horizontally


Changed
Expand Down
2 changes: 1 addition & 1 deletion beeref/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def draw_crop_rect(self, painter, rect):
painter.drawRect(rect)

def paint(self, painter, option, widget):
if painter.combinedTransform().m11() < 2:
if abs(painter.combinedTransform().m11()) < 2:
# We want image smoothing, but only for images where we
# are not zoomed in a lot. This is to ensure that for
# example icons and pixel sprites can be viewed correctly.
Expand Down

0 comments on commit b0775ca

Please sign in to comment.