Mandelbrot: Fix bug that allowed the view to become mirrored.
Change-Id: I88caf3c712bad30fa077bc8c0290b4706541c2b0 Reviewed-on: https://review.haiku-os.org/731 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
e920ab3cb6
commit
2c5c300420
@ -242,7 +242,7 @@ void FractalView::MouseUp(BPoint where)
|
||||
centerY = lt.y + dragFrame.Height() / 2;
|
||||
|
||||
SetLocationFromFrame(centerX, centerY);
|
||||
fSize = (dragFrame.Width() * fSize) / frame.Width();
|
||||
fSize = std::fabs((dragFrame.Width() * fSize) / frame.Width());
|
||||
} else {
|
||||
if (fMouseButtons & B_PRIMARY_MOUSE_BUTTON) {
|
||||
SetLocationFromFrame(where.x, where.y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user