From 9da483994bde8bad7d63a82ea06867ee8438d7ad Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 9 May 2004 12:45:50 +0000 Subject: [PATCH] Blind fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/dc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os2/dc.cpp b/src/os2/dc.cpp index 3bb0b92b61..0e8e6370be 100644 --- a/src/os2/dc.cpp +++ b/src/os2/dc.cpp @@ -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(); -- 2.45.2