Commit 6e4241d
SWT: Respect Windows accessibility cursor size setting
On Windows, the mouse pointer size can be increased in Accessibility
settings. Previously SWT always created cursors at their logical
bitmap size (e.g. 16x16, 32x32), ignoring the accessibility scale.
This change reads `CursorBaseSize` from
`HKCU\Control Panel\Cursors` and uses it as a scale factor when
creating SWT cursors. For example, with scale = 5, a 16px cursor
bitmap is scaled to 80px before being displayed, matching the user’s
configured pointer size.
This aligns SWT custom cursors with the system accessibility setting
and improves usability for users with enlarged cursors.1 parent 306966b commit 6e4241d
File tree
1 file changed
+32
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics
1 file changed
+32
-1
lines changedLines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
352 | 382 | | |
353 | 383 | | |
354 | 384 | | |
| |||
635 | 665 | | |
636 | 666 | | |
637 | 667 | | |
638 | | - | |
| 668 | + | |
| 669 | + | |
639 | 670 | | |
640 | 671 | | |
641 | 672 | | |
| |||
0 commit comments