From d1bf777402bf1eee975f42e42833ddcaf5689c9c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 Mar 2003 19:13:13 +0000 Subject: [PATCH] suppress error messages when loading msimg32.dll git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dc.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index c3406621d5..64e2dda0db 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -960,6 +960,10 @@ void wxDC::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask { 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() ) { @@ -967,7 +971,8 @@ void wxDC::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask 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(); } } -- 2.45.2