summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-04-01 06:20:45 +0000
committerfoobar <sniper@php.net>2001-04-01 06:20:45 +0000
commit78390894e905d2a3e9044f0812d3ad62f5d12b82 (patch)
treea18ed91da54859b026746af73a76b18100836220 /ext
parentaea8e80a6258f481a1511c2ef458471a9a903ef7 (diff)
downloadphp-git-78390894e905d2a3e9044f0812d3ad62f5d12b82.tar.gz
According to GD documentation the macros should be used instead..
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/gd.c8
-rw-r--r--ext/gd/gd_ctx.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 05cee2c80c..5c47e43a8a 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -855,8 +855,8 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
(*func_p)(im, fp, q);
break;
case PHP_GDIMG_TYPE_WBM:
- for(i=0; i < im->colorsTotal; i++) {
- if(im->red[i] == 0) break;
+ for(i=0; i < gdImageColorsTotal(im); i++) {
+ if(gdImageRed(im, i) == 0) break;
}
(*func_p)(im, i, fp);
break;
@@ -886,8 +886,8 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
(*func_p)(im, tmp, q);
break;
case PHP_GDIMG_TYPE_WBM:
- for(i=0; i < im->colorsTotal; i++) {
- if(im->red[i] == 0) break;
+ for(i=0; i < gdImageColorsTotal(im); i++) {
+ if(gdImageRed(im, i) == 0) break;
}
(*func_p)(im, q, tmp);
break;
diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c
index b3e51b7653..3e8d595c22 100644
--- a/ext/gd/gd_ctx.c
+++ b/ext/gd/gd_ctx.c
@@ -82,8 +82,8 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type,
(*func_p)(im, ctx, q);
break;
case PHP_GDIMG_TYPE_WBM:
- for(i=0; i < im->colorsTotal; i++) {
- if(im->red[i] == 0) break;
+ for(i=0; i < gdImageColorsTotal(im); i++) {
+ if(gdImageRed(im, i) == 0) break;
}
(*func_p)(im, i, ctx);
break;