summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-30 10:25:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-30 10:25:32 (GMT)
commit6d5388b221cdd37fe0103e9074edc052053847af (patch)
treee8a3926c2fb6d68e5517e661e69f0e5d064dccfa /src/game/GameController.cpp
parent9c67d41ad657de4d1cec21cfd43f1990d30cfc35 (diff)
downloadpowder-6d5388b221cdd37fe0103e9074edc052053847af.zip
powder-6d5388b221cdd37fe0103e9074edc052053847af.tar.gz
Faster brush adjusting with [ and ], use alt to change to 1 pixel
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index aede8d6..eab5dcc 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -193,7 +193,7 @@ void GameController::AdjustBrushSize(int direction, bool logarithmic, bool xAxis
ui::Point newSize(0, 0);
ui::Point oldSize = gameModel->GetBrush()->GetRadius();
if(logarithmic)
- newSize = gameModel->GetBrush()->GetRadius() + ui::Point(direction * ((gameModel->GetBrush()->GetRadius().X/10)>0?gameModel->GetBrush()->GetRadius().X/10:1), direction * ((gameModel->GetBrush()->GetRadius().Y/10)>0?gameModel->GetBrush()->GetRadius().Y/10:1));
+ newSize = gameModel->GetBrush()->GetRadius() + ui::Point(direction * ((gameModel->GetBrush()->GetRadius().X/5)>0?gameModel->GetBrush()->GetRadius().X/5:1), direction * ((gameModel->GetBrush()->GetRadius().Y/5)>0?gameModel->GetBrush()->GetRadius().Y/5:1));
else
newSize = gameModel->GetBrush()->GetRadius() + ui::Point(direction, direction);
if(newSize.X<0)