mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
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:
parent
23223e10b5
commit
9ec621a1ae
1 changed files with 3 additions and 3 deletions
|
|
@ -159,10 +159,10 @@ 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_WIN
|
#ifdef Q_OS_MACOS
|
||||||
painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1);
|
|
||||||
#else
|
|
||||||
painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2);
|
painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2);
|
||||||
|
#else
|
||||||
|
painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pmCache.insert(key, pixmap);
|
pmCache.insert(key, pixmap);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue