(gd_render): If gdAlphaTransparent is not defined,
authorhanda <handa>
Tue, 17 Jan 2006 02:57:23 +0000 (02:57 +0000)
committerhanda <handa>
Tue, 17 Jan 2006 02:57:23 +0000 (02:57 +0000)
define it as 127.

src/m17n-gd.c

index 97a5351..26c0219 100644 (file)
@@ -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)