From 9ec621a1aecb1f0f54b421cc32acf6a65134272d Mon Sep 17 00:00:00 2001 From: RickyRister <42636155+RickyRister@users.noreply.github.com> Date: Thu, 6 Feb 2025 22:21:56 -0800 Subject: [PATCH] fix wrong size flag bounding rect on linux (#5573) * fix flag bounding box on linux * use the non-deprecated macro --- cockatrice/src/client/ui/pixel_map_generator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/client/ui/pixel_map_generator.cpp b/cockatrice/src/client/ui/pixel_map_generator.cpp index c7303cd37..9f1c9bb68 100644 --- a/cockatrice/src/client/ui/pixel_map_generator.cpp +++ b/cockatrice/src/client/ui/pixel_map_generator.cpp @@ -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);