From: <jam...@us...> - 2007-02-20 20:20:04
|
Revision: 27 http://svn.sourceforge.net/nplot/?rev=27&view=rev Author: jamcquay Date: 2007-02-20 12:19:52 -0800 (Tue, 20 Feb 2007) Log Message: ----------- SystemInformation.MouseWheelScrollDelta is a .Net 2.0 function ONLY. Placed a compiler switch on the code inorder to compile for .Net 1.1 Modified Paths: -------------- trunk/src/Windows.PlotSurface2D.cs Modified: trunk/src/Windows.PlotSurface2D.cs =================================================================== --- trunk/src/Windows.PlotSurface2D.cs 2007-01-25 16:42:53 UTC (rev 26) +++ trunk/src/Windows.PlotSurface2D.cs 2007-02-20 20:19:52 UTC (rev 27) @@ -2441,9 +2441,12 @@ ((Windows.PlotSurface2D)ctr).CacheAxes(); +#if API_1_1 + float delta = (float)e.Delta / (float)e.Delta; +#else float delta = (float)e.Delta / (float)SystemInformation.MouseWheelScrollDelta; - delta *= sensitivity_; - +#endif + delta *= sensitivity_; Axis axis = null; PointF pMin = PointF.Empty; PointF pMax = PointF.Empty; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |