diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0aeb965..0f45a34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,9 +10,9 @@ Added behaviour can be changed to always use PNG (the former behaviour) or always JPG. To apply this behaviour to already saved images in existing bee files, you can save them as new files. -* Antialias/smoothing for displaying images. (For images being - displayed at a large zoom factor, smoothing will turn off to make - sure that icons, pixel sprites etc can be viewed correctly.) +* Enable antialiasing/smoothing. Images that are being displayed at a + large zoom factor are exempt to make sure that icons, pixel sprites + etc can be viewed correctly. * A scene can now be exported to a single image (File -> Export Scene...) diff --git a/beeref/items.py b/beeref/items.py index 8bba1ec..9b692df 100644 --- a/beeref/items.py +++ b/beeref/items.py @@ -301,7 +301,7 @@ class BeePixmapItem(BeeItemMixin, QtWidgets.QGraphicsPixmapItem): painter.drawRect(rect) def paint(self, painter, option, widget): - if painter.combinedTransform().m11() < 3: + if 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. diff --git a/beeref/view.py b/beeref/view.py index 391b3d9..9ce1e7a 100644 --- a/beeref/view.py +++ b/beeref/view.py @@ -50,6 +50,7 @@ class BeeGraphicsView(MainControlsMixin, self.setBackgroundBrush( QtGui.QBrush(QtGui.QColor(*constants.COLORS['Scene:Canvas']))) + self.setRenderHint(QtGui.QPainter.RenderHint.Antialiasing) self.setFrameShape(QtWidgets.QFrame.Shape.NoFrame) self.undo_stack = QtGui.QUndoStack(self)