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
This commit is contained in:
parent
84ce48c248
commit
d29e4565b7
@ -2909,9 +2909,9 @@ Painter::_MakeGradient(const BGradient& gradient, int32 colorCount,
|
|||||||
int32 startIndex = max_c(index, 0);
|
int32 startIndex = max_c(index, 0);
|
||||||
uint8* c = (uint8*)&colors[startIndex];
|
uint8* c = (uint8*)&colors[startIndex];
|
||||||
for (int32 i = startIndex; i < arraySize; i++) {
|
for (int32 i = startIndex; i < arraySize; i++) {
|
||||||
c[0] = from->color.red;
|
c[0] = from->color.blue;
|
||||||
c[1] = from->color.green;
|
c[1] = from->color.green;
|
||||||
c[2] = from->color.blue;
|
c[2] = from->color.red;
|
||||||
c[3] = from->color.alpha;
|
c[3] = from->color.alpha;
|
||||||
c += 4;
|
c += 4;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user