mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Fix antialias/smoothing for large zoom for horizontally flipped images
This commit is contained in:
parent
327126b649
commit
b0775cace4
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue