summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_cmd.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:29:01 +0200
commitd87a3312e30931d0f6c2ea6a6ced13fc7b217e65 (patch)
tree779271d342e46ffeb57e2e0547c4023ff9c57cd0 /sapi/phpdbg/phpdbg_cmd.c
parentecd32e437e81270221092726eb1bdac6917994e0 (diff)
downloadphp-git-d87a3312e30931d0f6c2ea6a6ced13fc7b217e65.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_cmd.c')
0 files changed, 0 insertions, 0 deletions