From 8f7b2bf9cbc2658536ba7b5ff43264d310e8791f Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 17 Jan 2006 02:57:23 +0000 Subject: [PATCH] (gd_render): If gdAlphaTransparent is not defined, define it as 127. --- src/m17n-gd.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 1.7.10.4