Fix Line/Rect drawing in zoom window

This commit is contained in:
Simon Robertshaw 2012-09-06 01:10:57 +01:00
parent 9432eb63a2
commit 9e3782ef1d

View File

@ -1082,12 +1082,12 @@ void GameView::OnMouseUp(int x, int y, unsigned button)
if(drawSnap && drawMode == DrawLine)
{
finalDrawPoint2 = c->PointTranslate(lineSnapCoords(c->PointTranslate(drawPoint1), drawPoint2));
finalDrawPoint2 = lineSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2));
}
if(drawSnap && drawMode == DrawRect)
{
finalDrawPoint2 = c->PointTranslate(rectSnapCoords(c->PointTranslate(drawPoint1), drawPoint2));
finalDrawPoint2 = rectSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2));
}
if(drawMode == DrawRect)