]> git.saurik.com Git - wxWidgets.git/commitdiff
OS/2 Statusbar fixes in DC
authorDavid Webster <Dave.Webster@bhmi.com>
Fri, 11 Jan 2002 22:39:45 +0000 (22:39 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Fri, 11 Jan 2002 22:39:45 +0000 (22:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/dc.cpp

index d2fe58841f1c9dcba262546909b3d211028c5526..2bee9f08e637ce9cd3fe9458967caec7a03331d7 100644 (file)
@@ -542,6 +542,18 @@ int wxDC::GetDepth() const
 
 void wxDC::Clear()
 {
+    //
+    // If this is a canvas DC then just fill with the background color
+    // Otherwise purge the whole thing
+    //
+    if (m_pCanvas)
+    {
+        RECTL                       vRect;
+
+        ::GpiQueryClipBox(m_hPS, &vRect);
+        ::WinFillRect(m_hPS, &vRect, ::GpiQueryBackColor(m_hPS));
+    }
+    else
     ::GpiErase(m_hPS);
 } // end of wxDC::Clear