From: Benjamin Williams Date: Tue, 14 Nov 2006 11:32:44 +0000 (+0000) Subject: fixed gradient direction in GradientFilLinear for all non-msw ports X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6dff0e2972552568ee5cf737c7aa0b1dc33df04a fixed gradient direction in GradientFilLinear for all non-msw ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 4df3396d2c..4264c85ae1 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -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 )