From: handa Date: Tue, 17 Jan 2006 02:57:23 +0000 (+0000) Subject: (gd_render): If gdAlphaTransparent is not defined, X-Git-Tag: REL-1-3-1~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=8f7b2bf9cbc2658536ba7b5ff43264d310e8791f;p=m17n%2Fm17n-lib.git (gd_render): If gdAlphaTransparent is not defined, define it as 127. --- diff --git a/src/m17n-gd.c b/src/m17n-gd.c index 97a5351..26c0219 100644 --- a/src/m17n-gd.c +++ b/src/m17n-gd.c @@ -327,6 +327,9 @@ gd_render (MDrawWindow win, int x, int y, if (bmp[j] > 0) { int pixel1 = pixel; +#ifndef gdAlphaTransparent +#define gdAlphaTransparent 127 +#endif int alpha = gdAlphaTransparent * (255 - bmp[j]) / 255; if (alpha > 0)