diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-24 16:23:11 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-24 16:23:11 +0000 |
commit | 95bfbfe1c1cad6611a157b7f7c0e909774dd5511 (patch) | |
tree | b49b6980e3d9f5f032ea19ff40b945391cbfd891 /ext/gd/gd.c | |
parent | 600fce5890e0080a7f2d5ba1ebd284abcf355816 (diff) | |
download | php-git-95bfbfe1c1cad6611a157b7f7c0e909774dd5511.tar.gz |
Fixed compile warning.
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r-- | ext/gd/gd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 79f113f4ca..82b8a998e6 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3301,15 +3301,15 @@ PHP_FUNCTION(imagepstext) GLYPH *str_img; T1_OUTLINE *char_path, *str_path; T1_TMATRIX *transform = NULL; - char *_str; - int _str_len; + char *str; + int str_len; int argc = ZEND_NUM_ARGS(); if (argc != 8 && argc != 12) { ZEND_WRONG_PARAM_COUNT(); } - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsrlllll|lldl", &img, &_str, &_str_len, &fnt, &size, &_fg, &_bg, &x, &y, &space, &width, &angle, &aa_steps) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsrlllll|lldl", &img, &str, &str_len, &fnt, &size, &_fg, &_bg, &x, &y, &space, &width, &angle, &aa_steps) == FAILURE) { return; } @@ -3383,7 +3383,7 @@ PHP_FUNCTION(imagepstext) } extend = T1_GetExtend(*f_ind); - str_path = T1_GetCharOutline(*f_ind, _str[0], size, transform); + str_path = T1_GetCharOutline(*f_ind, str[0], size, transform); if (!str_path) { if (T1_errno) { @@ -3392,15 +3392,15 @@ PHP_FUNCTION(imagepstext) RETURN_FALSE; } - for (i = 1; i < _str_len; i++) { - amount_kern = (int) T1_GetKerning(*f_ind, _str[i-1], _str[i]); - amount_kern += _str[i-1] == ' ' ? space : 0; + for (i = 1; i < str_len; i++) { + amount_kern = (int) T1_GetKerning(*f_ind, str[i-1], str[i]); + amount_kern += str[i-1] == ' ' ? space : 0; add_width = (int) (amount_kern+width)/extend; char_path = T1_GetMoveOutline(*f_ind, add_width, 0, 0, size, transform); str_path = T1_ConcatOutlines(str_path, char_path); - char_path = T1_GetCharOutline(*f_ind, _str[i], size, transform); + char_path = T1_GetCharOutline(*f_ind, str[i], size, transform); str_path = T1_ConcatOutlines(str_path, char_path); } str_img = T1_AAFillOutline(str_path, 0); |