Skip to content

Conversation

@ptziegler
Copy link
Contributor

Enabling advanced mode causes SWT to switch from GDI to the GDI+. With GDI+, certain features, such as XOR, are not supported. This limitation should be documented.

Closes #2984

Enabling advanced mode causes SWT to switch from GDI to the GDI+. With
GDI+, certain features, such as XOR, are not supported. This limitation
should be documented.

Closes eclipse-platform#2984
@github-actions
Copy link
Contributor

Test Results (win32)

   34 files  + 7     34 suites  +7   5m 0s ⏱️ +22s
4 636 tests +57  4 563 ✅ +55  73 💤 +3  0 ❌  - 1 
  170 runs  +57    167 ✅ +54   3 💤 +3  0 ❌ ±0 

Results for commit 8638fd9. ± Comparison against base commit c20fea4.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this explanation to the Javadoc. It makes sense to have this limited functionality documented.

* puts the receiver in a drawing mode where the destination color
* is replaced with the source color value.
* <p>
* <b>IMPORTANT:</b> GDI+ has no direct support for raster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Javadoc of SWT API needs to be the same for every OS (as it is or at least can be consumed in an OS-agnostic way). So this extension needs to be applied to the GTK and Cocoa implementations of GC as well.
To make such a comment reasonable in an OS-agnostic way, it should start with an according statement, such as: "This operation may not work on every platform. Especially on Windows, GDI+ has no direct support [...]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Win32] XOR mode doesn't work when advanced mode is enabled

2 participants