diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-15 13:27:30 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-15 18:34:09 +0100 |
commit | 380da094b0ad765b80c353a6b6d2a1aa6a003f6a (patch) | |
tree | f6920ffb3955b66cbbf502aa2faf12be8374f43f /sdext | |
parent | cf385d9cbbd7e64dd981595e07cac7f3e05519f8 (diff) |
ofz#6372 fix bitmap decoding of pattern in LwpBackgroundStuff
after
commit b90e098a354323b635bab3ee8f9c79deb1e734fe
use BitmapEx in LwpBackgroundStuff
<caolan> maybe the lotuswordpro original stride is really 4 after all
(as a common stride), with the first byte on each line containing the
8bits for each row
The original code in GetPattern() looked pretty dodgy since it was
copying 32-bytes into an 8 byte buffer.
Assume that the reversing part is right, and that the format is really a
1bit packed 8x8 image.
Also fix the decoding of such a image in CreateFromData to assume packed
format, which is more predictable.
Also fix the bug in createDefaultCross_3x3 which changing the assert
revealed.
Change-Id: I7196ae601429bbe0f842399df61c8b858e022d3e
Reviewed-on: https://gerrit.libreoffice.org/49808
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
0 files changed, 0 insertions, 0 deletions