* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Mono.Cairo / Samples / png / arc.cs
index ea842d70164c878f373fca00da6e124569605242..ebaa2c9f5b616385f5c6add2fbd5c6aa5bcbf9c7 100644 (file)
@@ -34,7 +34,7 @@ public class CairoTest
 {      
        static readonly double  M_PI = 3.14159265358979323846;
        
-       static void draw (Cairo.Graphics gr, int width, int height)
+       static void draw (Cairo.Context gr, int width, int height)
        {
                double xc = 0.5;
                double yc = 0.5;
@@ -64,8 +64,8 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
-               Cairo.Graphics g = new Cairo.Graphics (s);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
+               Cairo.Context g = new Cairo.Context (s);
 
                draw (g, 500, 500);