From ccf218e237ec630281f317980b57a55fcddd286e Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 2 Feb 2025 21:42:13 -0800 Subject: [PATCH] fix the values --- cockatrice/src/client/ui/pixel_map_generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/client/ui/pixel_map_generator.cpp b/cockatrice/src/client/ui/pixel_map_generator.cpp index 20d146e80..7b6a11cbb 100644 --- a/cockatrice/src/client/ui/pixel_map_generator.cpp +++ b/cockatrice/src/client/ui/pixel_map_generator.cpp @@ -128,10 +128,10 @@ QPixmap CountryPixmapGenerator::generatePixmap(int height, const QString &countr QPainter painter(&pixmap); painter.setPen(Qt::black); + // width/height offset was determined through trial-and-error #ifdef Q_OS_WIN - painter.drawRect(0, 0, pixmap.width(), pixmap.height()); + painter.drawRect(0, 0, pixmap.width() - 1, pixmap.height() - 1); #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); #endif