allow a slightly larger brush size

This commit is contained in:
jacob1 2012-12-18 23:49:30 -05:00
parent e1440f48f6
commit e302a07694

View File

@ -294,14 +294,14 @@ void GameController::AdjustBrushSize(int direction, bool logarithmic, bool xAxis
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)); 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 else
newSize = gameModel->GetBrush()->GetRadius() + ui::Point(direction, direction); newSize = gameModel->GetBrush()->GetRadius() + ui::Point(direction, direction);
if(newSize.X<0) if(newSize.X < 0)
newSize.X = 0; newSize.X = 0;
if(newSize.Y<0) if(newSize.Y < 0)
newSize.Y = 0; newSize.Y = 0;
if(newSize.X>128) if(newSize.X > 500)
newSize.X = 128; newSize.X = 500;
if(newSize.Y>128) if(newSize.Y > 500)
newSize.Y = 128; newSize.Y = 500;
if(xAxis) if(xAxis)
gameModel->GetBrush()->SetRadius(ui::Point(newSize.X, oldSize.Y)); gameModel->GetBrush()->SetRadius(ui::Point(newSize.X, oldSize.Y));