From d29e4565b70cca9e88c9b71cdc219bd1af02c2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 26 Jul 2009 13:53:52 +0000 Subject: [PATCH] When the gradient finished ealier than the to be filled area, the remaining part with the solid color of the last stop was filled with red and blue swapped. In the current GUI, it would only be visible with BTabViews. I am pretty sure there was a bug report about it (by julun if memory serves), but I cannot find it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31772 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/Painter/Painter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/drawing/Painter/Painter.cpp b/src/servers/app/drawing/Painter/Painter.cpp index 3a2588281d..0dce5b7a21 100644 --- a/src/servers/app/drawing/Painter/Painter.cpp +++ b/src/servers/app/drawing/Painter/Painter.cpp @@ -2909,9 +2909,9 @@ Painter::_MakeGradient(const BGradient& gradient, int32 colorCount, int32 startIndex = max_c(index, 0); uint8* c = (uint8*)&colors[startIndex]; for (int32 i = startIndex; i < arraySize; i++) { - c[0] = from->color.red; + c[0] = from->color.blue; c[1] = from->color.green; - c[2] = from->color.blue; + c[2] = from->color.red; c[3] = from->color.alpha; c += 4; }