// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
if (m_oldBitmap)
{
::SelectObject((HDC) dc, (HBITMAP) m_oldBitmap);
+#ifdef __WXDEBUG__
if (m_selectedBitmap.Ok())
{
m_selectedBitmap.SetSelectedInto(NULL);
}
+#endif
}
m_oldBitmap = 0;
if (m_oldPen)
{
s_triedToLoad = TRUE;
+ // don't give errors about the DLL being unavailable, we're
+ // prepared to handle this
+ wxLogNull nolog;
+
wxDynamicLibrary dll(_T("msimg32.dll"));
if ( dll.IsLoaded() )
{
if ( pfnAlphaBlend )
{
// we must keep the DLL loaded if we want to be able to
- // call AlphaBlend() so just never unload it at all
+ // call AlphaBlend() so just never unload it at all, not a
+ // big deal
dll.Detach();
}
}