]> git.saurik.com Git - wxWidgets.git/commitdiff
suppress error messages when loading msimg32.dll
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2003 19:13:13 +0000 (19:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2003 19:13:13 +0000 (19:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index c3406621d56a316d88e876b88d21606a7e714136..64e2dda0db9d0318d34d99ec4a23aa401558a74c 100644 (file)
@@ -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();
                 }
             }