X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6151f2a94c8851e712755839106707a863c5449..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 748fe83850..800f91fb94 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcclient.h" #endif @@ -310,15 +310,11 @@ WXHDC wxPaintDC::FindDCInCache(wxWindow* win) * wxPaintDCEx */ +// TODO: don't duplicate wxPaintDC code here!! + wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0) { -#ifdef __WXDEBUG__ - if ( !dc ) - { - wxFAIL_MSG( wxT("wxPaintDCEx requires an existing device context") ); - return; - } -#endif // __WXDEBUG__ + wxCHECK_RET( dc, wxT("wxPaintDCEx requires an existing device context") ); m_canvas = canvas;