Commit e2ae17b
Program icon scaling using system DPI #1759
This commit contributes to proper scaling of Program icons. Since these
icons are retrieved by OS.SHGetFileInfo which is System DPI-Aware, it
returns the icon with zoom level of the primary monitor at application
startup. Hence, for initialNativeZoom of the Image object to be created
for the icon, the zoom retrieved from the DPI is considered.
Contributes to
#62 and
#127
Fixes #17591 parent 81ac825 commit e2ae17b
File tree
1 file changed
+11
-4
lines changed- bundles/org.eclipse.swt/Eclipse SWT Program/win32/org/eclipse/swt/program
1 file changed
+11
-4
lines changedLines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
430 | 437 | | |
431 | 438 | | |
432 | 439 | | |
| |||
0 commit comments