Fix all samples to work with new API
[mono.git] / mcs / class / Mono.Cairo / Samples / png / arc.cs
index ea842d70164c878f373fca00da6e124569605242..ee7548d859b3e4b816d30cfa3072ecb5c4565ac4 100644 (file)
@@ -64,7 +64,7 @@ public class CairoTest
        
        static void Main ()
        {               
-               Surface s = Surface.CreateForImage (Format.ARGB32, 500, 500);
+               Surface s = new ImageSurface (Format.ARGB32, 500, 500);
                Cairo.Graphics g = new Cairo.Graphics (s);
 
                draw (g, 500, 500);