From 10b1829fe8f2fc041e97025b81f954a89cfa6ae1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 8 May 2018 20:32:43 +0530 Subject: [PATCH] Dont make the splash screen unnecessarily large --- src/calibre/gui2/splash_screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/splash_screen.py b/src/calibre/gui2/splash_screen.py index 56467067cc..4324e3a1f8 100644 --- a/src/calibre/gui2/splash_screen.py +++ b/src/calibre/gui2/splash_screen.py @@ -46,7 +46,7 @@ class SplashScreen(QSplashScreen): self.pmap = self.pmap.scaled(int(self.dpr * self.LOGO_SIZE), int(self.dpr * self.LOGO_SIZE), transformMode=Qt.SmoothTransformation) self.light_brush = QBrush(QColor('#F6F3E9')) self.dark_brush = QBrush(QColor('#39322B')) - pmap = QPixmap(int(self.WIDTH * self.dpr), int(self.WIDTH * self.dpr)) + pmap = QPixmap(int(self.WIDTH * self.dpr), int(self.total_height * self.dpr)) pmap.setDevicePixelRatio(self.dpr) pmap.fill(Qt.transparent) QSplashScreen.__init__(self, pmap)