aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel/board/Theme.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-01 20:28:39 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-01 20:28:39 +0100
commitdd24427d81d04765cbe3426b511b1ad05952d087 (patch)
tree6a5d40cdd07fbd2cd3aff51b449f27ba4c0228ac /src/game_tab/left_panel/board/Theme.cpp
parent29d5850b2f44ad520fc89324a110a721ac08841b (diff)
Debug drawing canvas
Diffstat (limited to 'src/game_tab/left_panel/board/Theme.cpp')
-rw-r--r--src/game_tab/left_panel/board/Theme.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game_tab/left_panel/board/Theme.cpp b/src/game_tab/left_panel/board/Theme.cpp
index 0c05fa1..6c662dc 100644
--- a/src/game_tab/left_panel/board/Theme.cpp
+++ b/src/game_tab/left_panel/board/Theme.cpp
@@ -134,6 +134,8 @@ bool Theme::Zoom(int amount) {
double width = skin_scaled['s']->GetWidth() + amount;
if(width<=20)
return false;
+ if(width>=180)
+ return false;
ResizeSquares(std::max(width, 1.0));
ResizePieces(std::max(width * PIECE_SIZE_FACTOR, 1.0));
return true;