diff --git a/src/shk.c b/src/shk.c index 3b8dfc953..a33bf46ee 100644 --- a/src/shk.c +++ b/src/shk.c @@ -2420,7 +2420,7 @@ unpaid_cost( boolean include_contents) { struct bill_x *bp = (struct bill_x *) 0; - struct monst *shkp; + struct monst *shkp = 0; char *shop; long amt = 0L; diff --git a/win/Qt/qt_bind.cpp b/win/Qt/qt_bind.cpp index ac1d91ade..3557cec4b 100644 --- a/win/Qt/qt_bind.cpp +++ b/win/Qt/qt_bind.cpp @@ -125,7 +125,14 @@ NetHackQtBind::qt_Splash() vb->addWidget(capt); capt->setAlignment(Qt::AlignCenter); lsplash->setFixedSize(pm.size()); + +#if QT_VERSION < 0x040000 + // if used on 5.11, this produces a fuzzy image lsplash->setMask(QBitmap(pm)); +#else + // required for 6.2; on 5.11, this produces a crisp image + lsplash->setPixmap(pm); +#endif #if QT_VERSION < 0x060000 QSize screensize = QApplication::desktop()->size();