mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-19 05:54:45 +01:00
Fix high dpi rendering of splash screen
This commit is contained in:
parent
3f434bee3f
commit
db2fdbc4a9
1 changed files with 4 additions and 1 deletions
|
|
@ -165,7 +165,10 @@ class SplashScreen(QSplashScreen):
|
|||
|
||||
def __init__(self):
|
||||
self.drawn_once = False
|
||||
QSplashScreen.__init__(self, QPixmap(I('library.png')))
|
||||
QSplashScreen.__init__(self)
|
||||
pmap = QPixmap(I('library.png'))
|
||||
pmap.setDevicePixelRatio(getattr(self, 'devicePixelRatioF', self.devicePixelRatio)())
|
||||
self.setPixmap(pmap)
|
||||
self.setWindowTitle(__appname__)
|
||||
|
||||
def drawContents(self, painter):
|
||||
|
|
|
|||
Loading…
Reference in a new issue