From dbea18a58d600af8bc8948dc3a77830bae558d57 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Fri, 10 Aug 2018 02:32:09 +0100 Subject: [PATCH] new interface to cater for perl use --- Compat/Compat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Compat/Compat.cs b/Compat/Compat.cs index a2da0d5..244f883 100644 --- a/Compat/Compat.cs +++ b/Compat/Compat.cs @@ -50,7 +50,7 @@ public class RasterInterf private static extern bool SetDllDirectory(string path); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate int diagnostics_Function(int messcode, string message, string opcode, + public delegate int diagnostics_Function(IntPtr face_handle, int messcode, string message, string opcode, int range_base, int is_composite, int IP, int callTop, int opc, int start); @@ -184,7 +184,7 @@ public bool RastTest (int resX, int resY, int[] arrPointSizes, _face.SetTransform(fmatrix, fdelta); for (uint ig = 0; ig < numGlyphs; ig++) { diagnostics_Function diagnostics = - (messcode, message, opcode, range_base, is_composite, IP, callTop, opc, start) => + (face_handle, messcode, message, opcode, range_base, is_composite, IP, callTop, opc, start) => { string sDetails = "Size " + arrPointSizes[i] + ", " + opcode; switch ( range_base )