From fff4cf1e1c910fd1776b14a146f646176be4a31e Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 28 Oct 2010 18:23:17 +0100 Subject: [PATCH] Revert 1102 Fixes: https://launchpad.net/bugs/667837 --- openlp/core/lib/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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