mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Fix #53640: XBM images require width to be multiple of 8
This commit is contained in:
parent
0c34f53c93
commit
ed0ec66996
3 changed files with 2 additions and 3 deletions
1
NEWS
1
NEWS
|
@ -11,6 +11,7 @@ PHP NEWS
|
|||
|
||||
- GD:
|
||||
. Fixed bug #43475 (Thick styled lines have scrambled patterns). (cmb)
|
||||
. Fixed bug #53640 (XBM images require width to be multiple of 8). (cmb)
|
||||
|
||||
- OpenSSL:
|
||||
. Fixed bug #71915 (openssl_random_pseudo_bytes is not fork-safe).
|
||||
|
|
|
@ -210,7 +210,7 @@ void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out)
|
|||
if (gdImageGetPixel(image, x, y) == fg) {
|
||||
c |= b;
|
||||
}
|
||||
if ((b == 128) || (x == sx && y == sy)) {
|
||||
if ((b == 128) || (x == sx - 1)) {
|
||||
b = 1;
|
||||
if (p) {
|
||||
gdCtxPrintf(out, ", ");
|
||||
|
|
|
@ -12,8 +12,6 @@ $white = imagecolorallocate($im, 255, 255, 255);
|
|||
imagefilledrectangle($im, 2, 2, 6, 6, $white);
|
||||
imagexbm($im, NULL);
|
||||
?>
|
||||
--XFAIL--
|
||||
Padding is not implemented yet
|
||||
--EXPECT--
|
||||
#define image_width 9
|
||||
#define image_height 9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue