aboutsummaryrefslogtreecommitdiff
path: root/src/qt/splashscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/splashscreen.cpp')
-rw-r--r--src/qt/splashscreen.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/qt/splashscreen.cpp b/src/qt/splashscreen.cpp
index e400278123..07b71a3c9a 100644
--- a/src/qt/splashscreen.cpp
+++ b/src/qt/splashscreen.cpp
@@ -1,10 +1,10 @@
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
+#include "chainparams.h"
-#include <QPainter>
-#undef loop /* ugh, remove this when the #define loop is gone from util.h */
#include <QApplication>
+#include <QPainter>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
@@ -27,7 +27,7 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
// load the bitmap for writing some text over it
QPixmap newPixmap;
- if(GetBoolArg("-testnet", false)) {
+ if(TestNet()) {
newPixmap = QPixmap(":/images/splash_testnet");
}
else {
@@ -66,9 +66,8 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
pixPaint.setFont(QFont(font, 10*fontFactor));
pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleCopyrightVSpace,copyrightText);
- // draw testnet string if -testnet is on
- if(QApplication::applicationName().contains(QString("-testnet"))) {
- // draw copyright stuff
+ // draw testnet string if testnet is on
+ if(TestNet()) {
QFont boldFont = QFont(font, 10*fontFactor);
boldFont.setWeight(QFont::Bold);
pixPaint.setFont(boldFont);