Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
new interface to cater for perl use
Browse files Browse the repository at this point in the history
  • Loading branch information
HinTak committed Aug 11, 2018
1 parent f4ff357 commit dbea18a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compat/Compat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit dbea18a

Please sign in to comment.