]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't log StretchDIBits failures
authorRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 02:06:01 +0000 (02:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 02:06:01 +0000 (02:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 4529ec2d4ac29dfc1030d09ee4c7382ef98b34b5..92af78fd5374fc93b92dd6bf04ec31843f09ca25 100644 (file)
@@ -2093,7 +2093,11 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
                                      SRCCOPY
                                      ) == (int)GDI_ERROR )
                 {
                                      SRCCOPY
                                      ) == (int)GDI_ERROR )
                 {
-                    wxLogLastError(wxT("StretchDIBits"));
+                    // On Win9x this API fails most (all?) of the time, so
+                    // logging it becomes quite distracting.  Since it falls
+                    // back to the code below this is not really serious, so
+                    // don't log it.                     
+                    //wxLogLastError(wxT("StretchDIBits"));
                 }
                 else
                 {
                 }
                 else
                 {