diff --git a/windows/colordialog.cpp b/windows/colordialog.cpp index d7030a4f..a04c4461 100644 --- a/windows/colordialog.cpp +++ b/windows/colordialog.cpp @@ -314,7 +314,7 @@ static void drawGrid(ID2D1RenderTarget *rt, D2D1_RECT_F *fillRect) pformat = rt->GetPixelFormat(); #else { - typedef D2D1_PIXEL_FORMAT *(__stdcall ID2D1RenderTarget::* GetPixelFormatF)(D2D1_PIXEL_FORMAT *); + typedef D2D1_PIXEL_FORMAT *(__stdcall ID2D1RenderTarget::* GetPixelFormatF)(D2D1_PIXEL_FORMAT *) const; GetPixelFormatF gpf; gpf = (GetPixelFormatF) (&(rt->GetPixelFormat)); diff --git a/windows/winutil.cpp b/windows/winutil.cpp index 507c5a3f..67f06068 100644 --- a/windows/winutil.cpp +++ b/windows/winutil.cpp @@ -144,7 +144,7 @@ D2D1_SIZE_F realGetSize(ID2D1RenderTarget *rt) return rt->GetSize(); #else D2D1_SIZE_F size; - typedef D2D1_SIZE_F *(__stdcall ID2D1RenderTarget::* GetSizeF)(D2D1_SIZE_F *); + typedef D2D1_SIZE_F *(__stdcall ID2D1RenderTarget::* GetSizeF)(D2D1_SIZE_F *) const; GetSizeF gs; gs = (GetSizeF) (&(rt->GetSize));