From: David Gow Date: Mon, 7 Jul 2014 03:10:59 +0000 (+0800) Subject: Divide some numbers by 5. X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=commitdiff_plain;h=ab62405af70c9fd4e6feee7a65a7b7bb8866fa2e Divide some numbers by 5. --- diff --git a/src/main.h b/src/main.h index dcd85fb..9900cd5 100644 --- a/src/main.h +++ b/src/main.h @@ -74,7 +74,7 @@ inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const if (wheel) { #if REAL == REAL_RATIONAL - view.ScaleAroundPoint(Real(x,scr.ViewportWidth()), Real(y,scr.ViewportHeight()), Real(100-5*wheel, 100)); + view.ScaleAroundPoint(Real(x,scr.ViewportWidth()), Real(y,scr.ViewportHeight()), Real(20-wheel, 20)); #else view.ScaleAroundPoint(Real(x)/Real(scr.ViewportWidth()),Real(y)/Real(scr.ViewportHeight()), Real(expf(-wheel/20.f))); #endif