Bug 374985 - [GTK/Linux] red background of min/max icons on gtk64

SWT fails to find the transparent color in the palette of the image data
created by GTK if the palette is reduced to 16 bit (e.g. in a vnc session
with 16 bit color depth).

The solution is: just use slightly different color value for the transparent
pixel which fits into 16 bit color palette and can be found later by
imageData.palette.getPixel(transparent).

See proposal made in bug 374985 comment 9 by Daniel Friederich.

Change-Id: I216227be1e5fa2a16ce12cb36c7c84951394e29e
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Also-by: Daniel Friederich <danielfriederich@gmx.net>
1 file changed
tree: ed87f3849a88e64096f10bfd3d21c4ca384761d2
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. 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!