]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed gradient direction in GradientFilLinear for all non-msw ports
authorBenjamin Williams <bwilliams@kirix.com>
Tue, 14 Nov 2006 11:32:44 +0000 (11:32 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Tue, 14 Nov 2006 11:32:44 +0000 (11:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp

index 4df3396d2c8ffaf8a7bd3a6da0dd4b6b91808a8e..4264c85ae1f574bd041e34a52e12fecc735db77b 100644 (file)
@@ -699,12 +699,12 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect,
     // save old pen
     wxPen oldPen = m_pen;
 
-    wxUint8 nR1 = destColour.Red();
-    wxUint8 nG1 = destColour.Green();
-    wxUint8 nB1 = destColour.Blue();
-    wxUint8 nR2 = initialColour.Red();
-    wxUint8 nG2 = initialColour.Green();
-    wxUint8 nB2 = initialColour.Blue();
+    wxUint8 nR1 = initialColour.Red();
+    wxUint8 nG1 = initialColour.Green();
+    wxUint8 nB1 = initialColour.Blue();
+    wxUint8 nR2 = destColour.Red();
+    wxUint8 nG2 = destColour.Green();
+    wxUint8 nB2 = destColour.Blue();
     wxUint8 nR, nG, nB;
 
     if ( nDirection == wxEAST || nDirection == wxWEST )