diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-11-25 20:52:23 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-11-25 21:07:21 +0400 |
commit | 680d854caf8d9f3f62ea0d589a380b76d2c584e8 (patch) | |
tree | 661e089c74d5b5e9f8dc0f3f3ab79889d03c03cf /src/unix/evdev.c | |
parent | d8d822f6bf79527820858793914e0ff18def9c79 (diff) |
Fix PCX decoder to be compliant with specification.
PCX specification says that bytes_per_line needs to be taken into
account when doing RLE decoding instead of (Xmax - Xmin), because images
that have odd width in pixels MUST have even number of bytes per
scanline. That means extra pixel data must be discarded from resulting
image.
Also check that color_planes is 1. Permit non-zero Xmin and Ymin values.
Diffstat (limited to 'src/unix/evdev.c')
0 files changed, 0 insertions, 0 deletions