Fix antialias/smoothing for large zoom for horizontally flipped images

This commit is contained in:
Rebecca Breu 2023-12-29 15:20:39 +01:00
parent 327126b649
commit b0775cace4
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -323,7 +323,7 @@ class BeePixmapItem(BeeItemMixin, QtWidgets.QGraphicsPixmapItem):
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.