Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
fix logo position and size on retina displays
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta authored and greenaddress committed Mar 7, 2019
1 parent 21c7c80 commit 04591c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/splashscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
pixPaint.fillRect(rGradient, gradient);

// draw the bitcoin icon, expected size of PNG: 1024x1024
QRect rectIcon(QPoint(32,-32), QSize(pixmap.size().height()+64,pixmap.size().height()+64));
int _32 = 32 / devicePixelRatio;
QRect rectIcon(QPoint(_32,-_32/2), QSize(pixmap.size().height()/devicePixelRatio+_32*2,pixmap.size().height()/devicePixelRatio+_32*2));

const QSize requiredSize(1024,1024);
QPixmap icon(networkStyle->getAppIcon().pixmap(requiredSize));
Expand Down

0 comments on commit 04591c5

Please sign in to comment.