Allow VFPU to save output vcd file
[ipdf/code.git] / src / main.h
index c7d5eca..2346119 100644 (file)
@@ -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