Skip to content

Commit

Permalink
remove qt version check from splashscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Mar 5, 2019
1 parent b9e0c91 commit c6cefaa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/qt/splashscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)

float fontFactor = 1.0;
float devicePixelRatio = 1.0;
#if QT_VERSION > 0x050100
devicePixelRatio = ((QGuiApplication*)QCoreApplication::instance())->devicePixelRatio();
#endif

// define text to place
QString titleText = tr(PACKAGE_NAME);
Expand All @@ -53,10 +51,8 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
QSize splashSize(480*devicePixelRatio,320*devicePixelRatio);
pixmap = QPixmap(splashSize);

#if QT_VERSION > 0x050100
// change to HiDPI if it makes sense
pixmap.setDevicePixelRatio(devicePixelRatio);
#endif

QPainter pixPaint(&pixmap);
pixPaint.setPen(QColor(100,100,100));
Expand Down

0 comments on commit c6cefaa

Please sign in to comment.