git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb2f0d
)
Divide some numbers by 5.
author
David Gow
<
[email protected]
>
Mon, 7 Jul 2014 03:10:59 +0000
(11:10 +0800)
committer
David Gow
<
[email protected]
>
Mon, 7 Jul 2014 03:10:59 +0000
(11:10 +0800)
src/main.h
patch
|
blob
|
history
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
- 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
UCC
git Repository :: git.ucc.asn.au