summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_utils.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2015-07-13 01:29:01 +0200
committerChristoph M. Becker <cmb@php.net>2015-07-13 01:33:00 +0200
commit094decc3c0b62a72bacebaf85c6269049bf12885 (patch)
tree893b5edf3e8af0df52a5d5030b48f159b43526df /sapi/phpdbg/phpdbg_utils.c
parent591fd4cdc3429931951ec08c7e5edd7af6e1c916 (diff)
downloadphp-git-094decc3c0b62a72bacebaf85c6269049bf12885.tar.gz
Fix #53154: Zero-height rectangle has whiskers
To avoid drawing the corner pixels twice, gdImageRectangle() draws the vertical lines 2 points shorter than the actual side of the rectangle. However, this causes "whiskers" for rectangles with height 0. This patch fixes this issue and at the same time optimizes the algorithm by drawing only a single line for zero height and zero width rectangles.
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
0 files changed, 0 insertions, 0 deletions