mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
fix the values
This commit is contained in:
parent
932fe5c237
commit
ccf218e237
1 changed files with 2 additions and 2 deletions
|
|
@ -128,10 +128,10 @@ QPixmap CountryPixmapGenerator::generatePixmap(int height, const QString &countr
|
||||||
QPainter painter(&pixmap);
|
QPainter painter(&pixmap);
|
||||||
painter.setPen(Qt::black);
|
painter.setPen(Qt::black);
|
||||||
|
|
||||||
|
// width/height offset was determined through trial-and-error
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
painter.drawRect(0, 0, pixmap.width(), pixmap.height());
|
painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1);
|
||||||
#else
|
#else
|
||||||
// determined through trial-and-error that /2 maps the pixmap coords to the painter coords
|
|
||||||
painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2);
|
painter.drawRect(0, 0, pixmap.width() / 2, pixmap.height() / 2);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue