]> git.saurik.com Git - wxWidgets.git/commitdiff
Blind fix
authorJulian Smart <julian@anthemion.co.uk>
Sun, 9 May 2004 12:45:50 +0000 (12:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 9 May 2004 12:45:50 +0000 (12:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/dc.cpp

index 3bb0b92b61ee10bd2a6e091c442254da12d6e90b..0e8e6370be88e69dd1b7ea9e6021e7d26128094c 100644 (file)
@@ -526,7 +526,7 @@ bool wxDC::CanGetTextExtent() const
 int wxDC::GetDepth() const
 {
     LONG                            lArray[CAPS_COLOR_BITCOUNT];
-    int                             nBitsPerPixel;
+    int                             nBitsPerPixel = 0;
 
     if(::DevQueryCaps( GetHDC()
                       ,CAPS_FAMILY
@@ -972,8 +972,8 @@ void wxDC::DoDrawLines(
     {
         int                         i;
 
-        CalcBoundingBox( vPoints[i].x
-                        ,vPoints[i].y
+        CalcBoundingBox( vPoints[0].x
+                        ,vPoints[0].y
                        );
         vPoint.x = vPoints[0].x;
         vPoint.y = OS2Y(vPoints[0].y,0);
@@ -1397,7 +1397,7 @@ void wxDC::DoDrawBitmap(
 
                     lColor = pWindowDC->m_pCanvas->GetBackgroundColour().GetPixel();
                 }
-                else if (GetBrush() != wxNullBrush)
+                else if (GetBrush().Ok())
                     lColor = GetBrush().GetColour().GetPixel();
                 else
                     lColor = m_textBackgroundColour.GetPixel();