]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed DoFloodFill's return value.
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 16 May 2005 16:22:05 +0000 (16:22 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 16 May 2005 16:22:05 +0000 (16:22 +0000)
Fixed DoGetPixel.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/dc.cpp

index 7c82a9c6c1820b5a4a7361092338c8ec14cddec1..9252f9cde97994188c5e3502474bfee04fa09105 100644 (file)
@@ -578,7 +578,7 @@ bool wxDC::DoFloodFill(
     if ((lHits = ::GpiFloodFill(m_hPS, lOptions, lColor)) != GPI_ERROR)
         bSuccess = true;
 
-    return true;
+    return bSuccess;
 } // end of wxDC::DoFloodFill
 
 bool wxDC::DoGetPixel(
@@ -592,17 +592,7 @@ bool wxDC::DoGetPixel(
 
     vPoint.x = vX;
     vPoint.y = OS2Y(vY,0);
-    lColor = ::GpiSetPel(m_hPS, &vPoint);
-
-    //
-    // Get the color of the pen
-    //
-    LONG                            lPencolor = 0x00ffffff;
-
-    if (m_pen.Ok())
-    {
-        lPencolor = m_pen.GetColour().GetPixel();
-    }
+    lColor = ::GpiQueryPel(m_hPS, &vPoint);
 
     //
     // return the color of the pixel
@@ -612,7 +602,7 @@ bool wxDC::DoGetPixel(
                   ,GetGValue(lColor)
                   ,GetBValue(lColor)
                  );
-    return(lColor == lPencolor);
+    return true;
 } // end of wxDC::DoGetPixel
 
 void wxDC::DoCrossHair(