Fix int2color as well.

This commit is contained in:
Martijn Versteegh 2018-11-22 18:09:42 +01:00
parent 4dc016050c
commit 3c017ba937
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static inline Color int2color(int c)
c2.g = (c >> 8) & 0xff;
c2.r = (c >> 16) & 0xff;
a = (c >> 24) & 0xff;
c2.a = 255 - a;
c2.a = 255 - a*255 / gdAlphaMax;
return c2;
}