dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit ToolkitGraphicsBase


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit ToolkitGraphicsBase.cs, 1.8, 1.9
Date: Mon, 29 Sep 2003 03:56:41 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit
In directory subversions:/tmp/cvs-serv28227/System.Drawing/Toolkit

Modified Files:
        ToolkitGraphicsBase.cs 
Log Message:


More fixes for build profiles, particularly those lacking floating point.


Index: ToolkitGraphicsBase.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/ToolkitGraphicsBase.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ToolkitGraphicsBase.cs      27 Sep 2003 02:43:06 -0000      1.8
--- ToolkitGraphicsBase.cs      29 Sep 2003 03:56:38 -0000      1.9
***************
*** 270,273 ****
--- 270,275 ----
        public abstract void FillPolygon(Point[] points, FillMode fillMode);
  
+ #if CONFIG_EXTENDED_NUMERICS
+ 
        private static Point ComputePoint(float u,
                                                                                
int x1, int y1,
***************
*** 385,400 ****
                        }
  
-       // Draw an arc within a rectangle defined by four points.
-       public abstract void DrawArc
-                       (Point[] rect, float startAngle, float sweepAngle);
- 
-       // Draw a pie slice within a rectangle defined by four points.
-       public abstract void DrawPie
-                       (Point[] rect, float startAngle, float sweepAngle);
- 
-       // Fill a pie slice within a rectangle defined by four points.
-       public abstract void FillPie
-                       (Point[] rect, float startAngle, float sweepAngle);
- 
        // Draw a closed cardinal curve using the current pen.
        public virtual void DrawClosedCurve(Point[] points, float tension)
--- 387,390 ----
***************
*** 459,462 ****
--- 449,496 ----
                        }
  
+ #else // !CONFIG_EXTENDED_NUMERICS
+ 
+       // Stub out spline operations if we don't have floating-point.
+ 
+       // Draw a bezier curve using the current pen.
+       public virtual void DrawBezier(int x1, int y1, int x2, int y2,
+                                                                  int x3, int 
y3, int x4, int y4)
+                       {
+                               // Nothing to do here.
+                       }
+ 
+       // Draw a closed cardinal curve using the current pen.
+       public virtual void DrawClosedCurve(Point[] points, float tension)
+                       {                       
+                               // Nothing to do here.
+                       }
+ 
+       // Fill a closed cardinal curve using the current brush.
+       public virtual void FillClosedCurve
+                               (Point[] points, float tension, FillMode 
fillMode)
+                       {
+                               // Nothing to do here.
+                       }
+ 
+       // Draw a cardinal curve using the current pen.
+       public virtual void DrawCurve(Point[] points, int offset,
+                                                                 int 
numberOfSegments, float tension)
+                       {
+                               // Nothing to do here.
+                       }
+ 
+ #endif // !CONFIG_EXTENDED_NUMERICS
+ 
+       // Draw an arc within a rectangle defined by four points.
+       public abstract void DrawArc
+                       (Point[] rect, float startAngle, float sweepAngle);
+ 
+       // Draw a pie slice within a rectangle defined by four points.
+       public abstract void DrawPie
+                       (Point[] rect, float startAngle, float sweepAngle);
+ 
+       // Fill a pie slice within a rectangle defined by four points.
+       public abstract void FillPie
+                       (Point[] rect, float startAngle, float sweepAngle);
  
        // Draw a string using the current font and brush.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]