projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4294043
)
(gd_render): If gdAlphaTransparent is not defined,
author
handa
<handa>
Tue, 17 Jan 2006 02:57:23 +0000
(
02:57
+0000)
committer
handa
<handa>
Tue, 17 Jan 2006 02:57:23 +0000
(
02:57
+0000)
define it as 127.
src/m17n-gd.c
patch
|
blob
|
history
diff --git
a/src/m17n-gd.c
b/src/m17n-gd.c
index
97a5351
..
26c0219
100644
(file)
--- 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)