mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix high dpi rendering of splash screen
This commit is contained in:
parent
3f434bee3f
commit
db2fdbc4a9
@ -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…
x
Reference in New Issue
Block a user