From befd6170580b19664f915c619e27fe633ebcc004 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 24 Feb 2013 16:56:55 +0100 Subject: [PATCH] Mono.Cairo: Fix names of native functions used in PSSurface It seems cairo_ps_surface_begin_* functions never existed, they were always named cairo_ps_surface_dsc_begin_*. Conflicts: mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs --- mcs/class/Mono.Cairo/Mono.Cairo/NativeMethods.cs | 4 ++-- mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mcs/class/Mono.Cairo/Mono.Cairo/NativeMethods.cs b/mcs/class/Mono.Cairo/Mono.Cairo/NativeMethods.cs index 855c282f6aa..fabb4b4c923 100644 --- a/mcs/class/Mono.Cairo/Mono.Cairo/NativeMethods.cs +++ b/mcs/class/Mono.Cairo/Mono.Cairo/NativeMethods.cs @@ -453,10 +453,10 @@ namespace Cairo //[DllImport (cairo, CallingConvention=CallingConvention.Cdecl)] //internal static extern IntPtr cairo_ps_surface_create_for_stream (string filename, double width, double height); [DllImport (cairo, CallingConvention=CallingConvention.Cdecl)] - internal static extern void cairo_ps_surface_begin_page_setup (IntPtr surface); + internal static extern void cairo_ps_surface_dsc_begin_page_setup (IntPtr surface); [DllImport (cairo, CallingConvention=CallingConvention.Cdecl)] - internal static extern void cairo_ps_surface_begin_setup (IntPtr surface); + internal static extern void cairo_ps_surface_dsc_begin_setup (IntPtr surface); [DllImport (cairo, CallingConvention=CallingConvention.Cdecl)] internal static extern void cairo_ps_surface_dsc_comment (IntPtr surface, string comment); diff --git a/mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs b/mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs index 70efae5e40d..9d6b73be689 100644 --- a/mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs +++ b/mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs @@ -43,12 +43,12 @@ namespace Cairo { public void BeginPageSetup () { - NativeMethods.cairo_ps_surface_begin_page_setup (Handle); + NativeMethods.cairo_ps_surface_dsc_begin_page_setup (Handle); } public void BeginSetup () { - NativeMethods.cairo_ps_surface_begin_setup (Handle); + NativeMethods.cairo_ps_surface_dsc_begin_setup (Handle); } public void DscComment (string comment) -- 2.25.1