use the non-deprecated macro

This commit is contained in:
RickyRister 2025-02-06 21:27:43 -08:00
parent b294438385
commit 311b620d71

View file

@ -159,7 +159,7 @@ QPixmap CountryPixmapGenerator::generatePixmap(int height, const QString &countr
painter.setPen(Qt::black); painter.setPen(Qt::black);
// width/height offset was determined through trial-and-error // width/height offset was determined through trial-and-error
#ifdef Q_OS_MAC #ifdef Q_OS_MACOS
painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2); painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2);
#else #else
painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1); painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1);