Exclude wxMSW-specific code from compilation under other platforms.
Compilation fix after r75648, see #13328. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,7 +172,7 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxWindowDC& dc ) :
|
||||
wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
|
||||
wxDCImpl( owner )
|
||||
{
|
||||
#ifndef NEVER_USE_DIB
|
||||
#if defined(__WXMSW__) && wxUSE_WXDIB
|
||||
// It seems that GDI+ sets invalid values for alpha channel when used with
|
||||
// a compatible bitmap (DDB). So we need to convert the currently selected
|
||||
// bitmap to a DIB before using it with any GDI+ functions to ensure that
|
||||
@@ -225,7 +225,7 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
|
||||
// Undo SelectObject() at the beginning of this block.
|
||||
const_cast<wxMemoryDC&>(dc).SelectObjectAsSource(bmp);
|
||||
}
|
||||
#endif // !NEVER_USE_DIB
|
||||
#endif // wxUSE_WXDIB
|
||||
|
||||
Init(wxGraphicsContext::Create(dc));
|
||||
}
|
||||
|
Reference in New Issue
Block a user