fix flag bounding box on linux

This commit is contained in:
RickyRister 2025-02-06 21:26:15 -08:00
parent 23223e10b5
commit b294438385

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_MAC
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);