From 9febbe2b309228d8a5c224a34a93d372e3a72734 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 28 Nov 2021 19:32:02 +0100 Subject: [PATCH] Explicitly cast AutoHRGN to HRGN to unify types in the statement This seems to be required by MinGW compiler. --- src/msw/dc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 82fe903499..3896ad8b5a 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -650,7 +650,7 @@ void wxMSWDCImpl::SetClippingHrgn(WXHRGN hrgn, bool doRtlOffset) // note that we combine the new clipping region with the existing one: this // is compatible with what the other ports do and is the documented // behaviour now (starting with 2.3.3) - if ( ::ExtSelectClipRgn(GetHdc(), rgnRTL ? rgnRTL : (HRGN)hrgn, RGN_AND) == ERROR ) + if ( ::ExtSelectClipRgn(GetHdc(), (HRGN)rgnRTL ? (HRGN)rgnRTL : (HRGN)hrgn, RGN_AND) == ERROR ) { wxLogLastError(wxT("ExtSelectClipRgn"));