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