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
Modify symlinks
[ipdf/code.git]
/
src
/
main.h
diff --git
a/src/main.h
b/src/main.h
index
c7d5eca
..
2346119
100644
(file)
--- a/
src/main.h
+++ b/
src/main.h
@@
-35,6
+35,11
@@
inline void MainLoop(Document & doc)
}
oldx = x;
oldy = y;
+
+ if (wheel)
+ {
+ view.ScaleAroundPoint(Real(x)/Real(scr.ViewportWidth()),Real(y)/Real(scr.ViewportHeight()), expf(-wheel/20.f));
+ }
}
);
while (scr.PumpEvents())
UCC
git Repository :: git.ucc.asn.au