Bitmap: Fix vertical gradient direction

This commit is contained in:
Jonas Kulla 2014-08-15 23:04:38 +02:00
parent 8d375b5cac
commit bdd60291a7
1 changed files with 4 additions and 4 deletions

View File

@ -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
{