summaryrefslogtreecommitdiff
path: root/src/gdiplus/cdwinp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdiplus/cdwinp.cpp')
-rw-r--r--src/gdiplus/cdwinp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdiplus/cdwinp.cpp b/src/gdiplus/cdwinp.cpp
index 522f136..2a362d0 100644
--- a/src/gdiplus/cdwinp.cpp
+++ b/src/gdiplus/cdwinp.cpp
@@ -2745,8 +2745,8 @@ cdCtxCanvas *cdwpCreateCanvas(cdCanvas* canvas, Graphics* graphics, int wtype)
}
static ULONG_PTR cd_gdiplusToken = NULL;
-
-static void __stdcall DebugEvent(DebugEventLevel level, char* msg)
+
+static void __stdcall cd_DebugEvent(int level, char* msg)
{
(void)level;
MessageBox(NULL, msg, "GDI+ Debug", 0);
@@ -2758,7 +2758,7 @@ void cdwpGdiPlusStartup(int debug)
{
GdiplusStartupInput input;
if (debug)
- input.DebugEventCallback = DebugEvent;
+ input.DebugEventCallback = (DebugEventProc)cd_DebugEvent;
// Initialize GDI+.
GdiplusStartup(&cd_gdiplusToken, &input, NULL);