summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 06ba1d4..3d36b75 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -187,6 +187,10 @@ void GameController::AdjustBrushSize(int direction, bool logarithmic, bool xAxis
newSize.X = 0;
if(newSize.Y<0)
newSize.Y = 0;
+ if(newSize.X>128)
+ newSize.X = 128;
+ if(newSize.Y>128)
+ newSize.Y = 128;
if(xAxis)
gameModel->GetBrush()->SetRadius(ui::Point(newSize.X, oldSize.Y));