2009-01-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
[mono.git] / mcs / class / Mono.Cairo / Mono.Cairo / PSSurface.cs
index 348e4fec3fff69cd25a5b877fcf1450c54cea972..1304be6230a295fa69dd921dc5edf431ba3d6767 100644 (file)
@@ -26,8 +26,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if CAIRO_1_2
-
 using System;
 
 namespace Cairo {
@@ -40,7 +38,7 @@ namespace Cairo {
 
                public PSSurface (string filename, double width, double height)
                {
-                       surface = CairoAPI.cairo_ps_surface_create (filename, width, height);
+                       surface = NativeMethods.cairo_ps_surface_create (filename, width, height);
                        lock (surfaces.SyncRoot){
                                surfaces [surface] = this;
                        }
@@ -48,24 +46,22 @@ namespace Cairo {
 
                public void BeginPageSetup ()
                {
-                       CairoAPI.cairo_ps_surface_begin_page_setup (surface);
+                       NativeMethods.cairo_ps_surface_begin_page_setup (surface);
                }
 
                public void BeginSetup ()
                {
-                       CairoAPI.cairo_ps_surface_begin_setup (surface);
+                       NativeMethods.cairo_ps_surface_begin_setup (surface);
                }
 
                public void DscComment (string comment)
                {
-                       CairoAPI.cairo_ps_surface_dsc_comment (surface, comment);
+                       NativeMethods.cairo_ps_surface_dsc_comment (surface, comment);
                }
 
                public void SetSize (double width, double height)
                {
-                       CairoAPI.cairo_ps_surface_set_size (surface, width, height);
+                       NativeMethods.cairo_ps_surface_set_size (surface, width, height);
                }
        }
 }
-
-#endif