]> git.saurik.com Git - wxWidgets.git/commitdiff
added typcast needed for VC++ 6
authorRobin Dunn <robin@alldunn.com>
Mon, 21 Feb 2000 22:09:03 +0000 (22:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 21 Feb 2000 22:09:03 +0000 (22:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index b9fdcbe24e65fdc9bffd0dc7d3d0af6fdc8988be..c6e79a219b044eeb38f95a6bc3fe42947da28c30 100644 (file)
@@ -578,12 +578,12 @@ void wxDC::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
 
     if ((m_logicalFunction == wxCOPY) && (m_pen.GetStyle() == wxTRANSPARENT))
     {
-           RECT rect;
+        RECT rect;
         rect.left = XLOG2DEV(x);
         rect.top = YLOG2DEV(y);
         rect.right = XLOG2DEV(x2);
-           rect.bottom = YLOG2DEV(y2);
-           (void)FillRect(GetHdc(), &rect, m_brush.GetResourceHandle() );
+        rect.bottom = YLOG2DEV(y2);
+        (void)FillRect(GetHdc(), &rect, (HBRUSH)m_brush.GetResourceHandle() );
     }
     else
     {