diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index 1ad17a039..c8551299b 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -263,8 +263,9 @@ def resize_image(image, width, height, background=QtCore.Qt.black): # and move it to the centre of the preview space new_image = QtGui.QImage(width, height, QtGui.QImage.Format_ARGB32_Premultiplied) + new_image.fill(background) painter = QtGui.QPainter(new_image) - painter.fillRect(new_image.rect(), background) + #painter.fillRect(new_image.rect(), background) painter.drawImage((width - realw) / 2, (height - realh) / 2, preview) return new_image