Fix all samples to work with new API
[mono.git] / mcs / class / Mono.Cairo / Samples / png / pattern_fill.cs
index 5ca06602e1613418d67bf37310f4b2b59d10623c..835eb8f5a850942dd75c05a97f0f660192fb3233 100644 (file)
@@ -135,7 +135,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);