From f2cea7defb9f81651e7f140adf8efa2ac1f2e630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Wed, 18 Dec 2024 19:04:31 +0100 Subject: [PATCH] Rotate planes as well. --- .../src/client/ui/widgets/cards/card_info_picture_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp index 9a9f477e4..78c5c2bac 100644 --- a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp +++ b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.cpp @@ -150,7 +150,8 @@ void CardInfoPictureWidget::paintEvent(QPaintEvent *event) } QPixmap transformedPixmap = resizedPixmap; // Default pixmap - if (info && (info->getProperty("layout") == "split" || info->getProperty("maintype") == "Battle")) { + if (info && (info->getProperty("layout") == "split" || info->getProperty("layout") == "planar" || + info->getProperty("maintype") == "Battle")) { // Rotate pixmap 90 degrees to the left QTransform transform; transform.rotate(90);