Problem: sixel encoder drops pixels on the right edge of shapes
(after v9.2.0612)
Solution: Update xmax only when the new x is greater, mirroring the
existing xmin handling (Yasuhiro Matsumoto)
The per-colour xmax was updated with an unconditional assignment while
filling the band row by row, so it held the right edge of the last row
containing the colour instead of the maximum over all six rows.
Compare before updating, like xmin.
closes: #20468
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
{
if (x < band_state->xmin[pix])
band_state->xmin[pix] = x;
- band_state->xmax[pix] = x;
+ if (x > band_state->xmax[pix])
+ band_state->xmax[pix] = x;
}
band_state->bits[(size_t)pix * width + x] |= rowmask;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 615,
/**/
614,
/**/