Explicitly cast AutoHRGN to HRGN to unify types in the statement
This seems to be required by MinGW compiler.
This commit is contained in:
parent
03706e9fef
commit
9febbe2b30
1 changed files with 1 additions and 1 deletions
|
|
@ -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"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue