Bitmap: Fix vertical gradient direction
This commit is contained in:
parent
8d375b5cac
commit
bdd60291a7
|
@ -506,10 +506,10 @@ void Bitmap::gradientFillRect(const IntRect &rect,
|
|||
|
||||
if (vertical)
|
||||
{
|
||||
quad.vert[0].color = color2;
|
||||
quad.vert[1].color = color2;
|
||||
quad.vert[2].color = color1;
|
||||
quad.vert[3].color = color1;
|
||||
quad.vert[0].color = color1;
|
||||
quad.vert[1].color = color1;
|
||||
quad.vert[2].color = color2;
|
||||
quad.vert[3].color = color2;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue