Fill the alpha channel by default for vcl 32-bit bitmaps too

Desktop / LibreOffice - Andrzej Hunt [collabora.com] - 25 June 2014 07:04 UTC

Otherwise the alpha channel for bitmaps created directly is empty, indicating a transparent bitmap (although we don't actually handle transparency). This complements hardcoding of the alpha channel in basebmp. VCL bitmaps can be copied bit-for-bit directly into a basebmp bitmap, hence it's important to make sure we fill the alpha channel in vcl too.

Conflicts: include/vcl/salbtype.hxx

cd1f348 Fill the alpha channel by default for vcl 32-bit bitmaps too.
include/vcl/salbtype.hxx | 29 +++++++++++++++++++----------
vcl/headless/svpbmp.cxx | 16 ++++++++--------
vcl/source/gdi/bmpacc2.cxx | 8 ++++----
3 files changed, 31 insertions(+), 22 deletions(-)

Upstream: cgit.freedesktop.org


  • Share