use MOONLIGHT symbol
[mono.git] / mcs / class / Mono.Cairo / Samples / x11 / image.cs
index b219bb1ee32fbd0c107a4fec9520842554699aaa..a6993c35120aaf7f6ccf258f4c12fecc54ab9882 100644 (file)
@@ -36,15 +36,15 @@ public class X11Test
 {
         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)
        {
                int w, h;
-               SurfaceImage image;
+               ImageSurface image;
                
                gr.Scale (width, height);
                gr.LineWidth = 0.04;
                
-               image = new SurfaceImage ("data/e.png");
+               image = new ImageSurface ("data/e.png");
                w = image.Width;
                h = image.Height;
                
@@ -65,13 +65,13 @@ public class X11Test
                
                win.Show ();
                
-               Cairo.Surface s = Cairo.Surface.CreateForXlib (win.Display,
+               Cairo.XlibSurface s = new Cairo.XlibSurface (win.Display,
                               win.XWindow,
                               X11.XDefaultVisual (win.Display, win.Screen),
                               (int)win.Width, (int)win.Height);
 
                
-               Cairo.Graphics g = new Cairo.Graphics (s);
+               Cairo.Context g = new Cairo.Context (s);
                
                draw (g, 500, 500);