mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
allow removing zoom tool when shift drawing lines
This commit is contained in:
@@ -1018,7 +1018,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
|
||||
c->HistorySnapshot();
|
||||
if(drawMode == DrawRect || drawMode == DrawLine)
|
||||
{
|
||||
drawPoint1 = ui::Point(x, y);
|
||||
drawPoint1 = c->PointTranslate(ui::Point(x, y));
|
||||
}
|
||||
if(drawMode == DrawPoints)
|
||||
{
|
||||
@@ -1288,6 +1288,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
||||
}
|
||||
else
|
||||
{
|
||||
if (drawMode != DrawLine)
|
||||
isMouseDown = false;
|
||||
zoomCursorFixed = false;
|
||||
c->SetZoomEnabled(true);
|
||||
|
Reference in New Issue
Block a user