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
This commit is contained in:
Benjamin Williams
2006-11-14 11:32:44 +00:00
parent 05d9753817
commit 6dff0e2972

View 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 )