git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Divide some numbers by 5.
[ipdf/code.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index
dcd85fb
..
9900cd5
100644
(file)
--- 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
if (wheel)
{
#if REAL == REAL_RATIONAL
- view.ScaleAroundPoint(Real(x,scr.ViewportWidth()), Real(y,scr.ViewportHeight()), Real(
100-5*wheel, 10
0));
+ view.ScaleAroundPoint(Real(x,scr.ViewportWidth()), Real(y,scr.ViewportHeight()), Real(
20-wheel, 2
0));
#else
view.ScaleAroundPoint(Real(x)/Real(scr.ViewportWidth()),Real(y)/Real(scr.ViewportHeight()), Real(expf(-wheel/20.f)));
#endif
#else
view.ScaleAroundPoint(Real(x)/Real(scr.ViewportWidth()),Real(y)/Real(scr.ViewportHeight()), Real(expf(-wheel/20.f)));
#endif
UCC
git Repository :: git.ucc.asn.au