Fix Line/Rect drawing in zoom window
This commit is contained in:
parent
9432eb63a2
commit
9e3782ef1d
@ -1082,12 +1082,12 @@ void GameView::OnMouseUp(int x, int y, unsigned button)
|
|||||||
|
|
||||||
if(drawSnap && drawMode == DrawLine)
|
if(drawSnap && drawMode == DrawLine)
|
||||||
{
|
{
|
||||||
finalDrawPoint2 = c->PointTranslate(lineSnapCoords(c->PointTranslate(drawPoint1), drawPoint2));
|
finalDrawPoint2 = lineSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(drawSnap && drawMode == DrawRect)
|
if(drawSnap && drawMode == DrawRect)
|
||||||
{
|
{
|
||||||
finalDrawPoint2 = c->PointTranslate(rectSnapCoords(c->PointTranslate(drawPoint1), drawPoint2));
|
finalDrawPoint2 = rectSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(drawMode == DrawRect)
|
if(drawMode == DrawRect)
|
||||||
|
Loading…
Reference in New Issue
Block a user