Fix all samples to work with new API
[mono.git] / mcs / class / Mono.Cairo / Samples / png / clip.cs
index 84dac78540240e8dd5793bb6720eb035606cf17c..23ba79c7c78790999cd3cf9b27a65464cff5e509 100644 (file)
@@ -56,7 +56,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);