Bug 493455 - [win32] always treat empty images as opaque

An empty image is an image constructed only from width and height but
without any pixel data. Depending on the system and the image size the
underlying BITMAP may be allocated with a depth of 32-bit. In that case
we just ignore its additional channel. This fixes a regression
introduced in 8d21781c6b65b49d2f30db28ada54be673b5925c.

Change-Id: I3afaa578f8a8867e7e960de9a176a0d99ff24456
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/190727
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
2 files changed
tree: 505c7e5aa96c20f22498cbbd658bfdc2e364f927
  1. bundles/
  2. container/
  3. examples/
  4. features/
  5. local-build/
  6. tests/
  7. .gitattributes
  8. .gitignore
  9. CONTRIBUTING
  10. Jenkinsfile
  11. LICENSE
  12. NOTICE
  13. pom.xml
  14. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!