Skip to content

Regression drawing image arising from fix to #185 and other regressions in Image class #301

@Phillipus

Description

@Phillipus

Windows only.

There have been a few changes to the way transparency is handled in the Image class on Windows from @jonathan-meier recently. However, we were left with a bug that caused problems that was apparently fixed here with #185

Unfortunately this fix has caused yet another bug which now makes our RCP application broken when targetted with the latest SWT version.

The regression is caused by the fix in 8def011 - however the underlying cause is somewhere deeper than that arising from previous changes to Image class on Windows

I have put together a snippet that shows the problem (see later post)

If you run the snippet with a version of SWT prior to 8def011 a red box should be drawn:

correct

But running the snippet with a version of SWT after 8def011 gives a wrong colored image:

incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsHappens on Windows OSfix verifiedThe implemented fix has been verified with an I-buildregressionSomething that used to work

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions