fix wrong size flag bounding rect on linux (#5573)

* fix flag bounding box on linux

* use the non-deprecated macro
This commit is contained in:
RickyRister 2025-02-06 22:21:56 -08:00 committed by GitHub
parent 23223e10b5
commit 9ec621a1ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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