Fix color2int alpha handling (libgd alpha is 0-127)

This commit is contained in:
Martijn Versteegh 2018-11-22 14:38:58 +01:00
parent 97c5dc0a83
commit 4dc016050c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
static inline int color2int(Color c)
{
u8 a = 255 - c.a;
u8 a = (255 - c.a) * gdAlphaMax / 255;
return (a << 24) | (c.r << 16) | (c.g << 8) | c.b;
}