Explicitly cast AutoHRGN to HRGN to unify types in the statement

This seems to be required by MinGW compiler.
This commit is contained in:
Artur Wieczorek 2021-11-28 19:32:02 +01:00
parent 03706e9fef
commit 9febbe2b30

View file

@ -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"));