aboutsummaryrefslogtreecommitdiff
path: root/release/tools
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2019-05-03 13:06:46 +0000
committerBruce Evans <bde@FreeBSD.org>2019-05-03 13:06:46 +0000
commit2f5cff37506aaa5d4ebf53560981899efadcc5e2 (patch)
tree6f8e5d1e2902cc8fb38e53aeca4efdbda25992de /release/tools
parentd151344dbff98b00c52437f953183853064c4783 (diff)
downloadsrc-2f5cff37506aaa5d4ebf53560981899efadcc5e2.tar.gz
src-2f5cff37506aaa5d4ebf53560981899efadcc5e2.zip
Fix copying planar bitmaps when the horizontal start and end are both not
multiples of 8. Then the misaligned pixels at the end were not copied. Clean up variable misuse related to this bug. The width in bytes was first calculated correctly and used to do complicated reblocking correctly, but it was stored in an unrelated scratch variable and later recalculated with an off-by-1-error, so the last byte (times 4 planes) in the intermediate copy was not copied. This doubly-misaligned case is especially slow. Misalignment complicates the reblocking, and each misaligment requires a read before write, and this read is still not done from the shadow buffer.
Notes
Notes: svn path=/head/; revision=347054
Diffstat (limited to 'release/tools')
0 files changed, 0 insertions, 0 deletions