Skip to content

Commit c024dd8

Browse files
Update N&N: Clarify rationale for Cursor constructor deprecation in SWT
- Updated the news and noteworthy entry for the deprecation of `Cursor(Device, ImageData, ImageData, int, int)` in SWT. - Clarified that the constructor was deprecated due to limited DPI support. - Explained that the new `Cursor(Device, ImageDataProvider, int, int)` constructor provides the best image for all zoom levels, ensuring proper support for high-DPI displays.
1 parent 53d0364 commit c024dd8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

news/4.37/platform_isv.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,25 @@ This only makes an implicit assumption explicit, some consumers have always reli
4848
Additionally, optional runtime checks verifying this linear scaling behavior are available as a debugging feature to assist developers in validating their implementations.
4949

5050
These checks can be enabled by starting the application with `-Dorg.eclipse.swt.internal.enableStrictChecks`, but note that this system property may be subject to change in future releases without prior notice.
51+
52+
---
53+
54+
### Cursor Constructor Deprecation and Replacement
55+
56+
<details>
57+
<summary>Contributors</summary>
58+
59+
- [Shahzaib Ibrahim](https://github.com/ShahzaibIbrahim)
60+
</details>
61+
62+
The constructor `Cursor(Device, ImageData, ImageData, int, int)` has been **deprecated** in SWT due to its limited DPI support.
63+
64+
You should now use the new constructor:
65+
66+
```
67+
Cursor(Device, ImageDataProvider, int, int)
68+
```
69+
70+
The new constructor with `ImageDataProvider` gives you the best image for the cursor for all zoom levels, ensuring proper support for high-DPI displays and modern environments.
71+
72+
Please update your code to use the new constructor signature. For more details, see the [pull request](https://github.com/eclipse-platform/eclipse.platform.swt/pull/2563).

0 commit comments

Comments
 (0)