From c4e312efb9ab1a4f06243d01d1dc2a10e572a5cd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 19 Jan 2014 14:14:18 +0000 Subject: [PATCH] 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 --- src/common/dcgraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index d42209b8cd..32f4390402 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -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(dc).SelectObjectAsSource(bmp); } -#endif // !NEVER_USE_DIB +#endif // wxUSE_WXDIB Init(wxGraphicsContext::Create(dc)); }