Skip to content

Commit 19a9a1f

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 19a9a1f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

news/4.37/platform_isv.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,26 @@ 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+
## SWT
54+
55+
### Cursor Constructor Deprecation and Replacement
56+
57+
<details>
58+
<summary>Contributors</summary>
59+
60+
- [Shahzaib Ibrahim](https://github.com/ShahzaibIbrahim)
61+
</details>
62+
63+
The constructor `Cursor(Device, ImageData, ImageData, int, int)` has been **deprecated** in SWT due to its limited DPI support.
64+
65+
You should now use the new constructor:
66+
67+
```
68+
Cursor(Device, ImageDataProvider, int, int)
69+
```
70+
71+
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.
72+
73+
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)