@@ -28,12 +28,12 @@ public abstract class ZeDMDBase
2828 private GCHandle handle ;
2929
3030 protected void LogHandler ( string format , IntPtr args , IntPtr pUserData )
31- {
31+ {
3232#if PLATFORM_X64
3333 Logger . Debug ( "Trying to convert libzedmd log message: " + format ) ;
34- Logger . Info ( "libzedmd: " + Marshal . PtrToStringAnsi ( ZeDMD_FormatLogMessage ( format , args , pUserData ) ) ) ;
34+ Logger . Info ( "libzedmd: " + Marshal . PtrToStringAnsi ( ZeDMD_FormatLogMessage ( format , args , pUserData ) ) ) ;
3535#endif
36- }
36+ }
3737
3838 protected void Init ( )
3939 {
@@ -44,7 +44,7 @@ protected void Init()
4444 ZeDMD_LogCallback callbackDelegate = new ZeDMD_LogCallback ( LogHandler ) ;
4545 // Keep a reference to the delegate to prevent GC from collecting it
4646 handle = GCHandle . Alloc ( callbackDelegate ) ;
47- ZeDMD_SetLogCallback ( _pZeDMD , callbackDelegate , IntPtr . Zero ) ;
47+ ZeDMD_SetLogCallback ( _pZeDMD , callbackDelegate , IntPtr . Zero ) ;
4848#else
4949 Logger . Warn ( "Forwarding libzedmd and libserialport logging is not working on x86." ) ;
5050#endif
@@ -122,11 +122,12 @@ public void ClearColor()
122122 [ DllImport ( "zedmd64.dll" , CharSet = CharSet . Ansi , CallingConvention = CallingConvention . Cdecl ) ]
123123#else
124124 [ DllImport ( "zedmd.dll" , CharSet = CharSet . Ansi , CallingConvention = CallingConvention . Cdecl ) ]
125+ #endif
125126 protected static extern IntPtr ZeDMD_GetInstance ( ) ;
126127
127128#if PLATFORM_X64
128129 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
129- protected delegate void ZeDMD_LogCallback ( string format , IntPtr args , IntPtr pUserData ) ;
130+ protected delegate void ZeDMD_LogCallback ( string format , IntPtr args , IntPtr pUserData ) ;
130131
131132 [ DllImport ( "zedmd64.dll" , CharSet = CharSet . Ansi , CallingConvention = CallingConvention . Cdecl ) ]
132133 protected static extern void ZeDMD_SetLogCallback ( IntPtr pZeDMD , ZeDMD_LogCallback callback , IntPtr pUserData ) ;
0 commit comments