Commit 1d54936
committed
MenuItem Image Half Scaling #62
This commit contributes to enforcing half scaling on the MenuItem
Image. On Win32, the OS is responsible for painting the Image of a
MenuItem and it expects images to be in standard sizes i.e. 16px, 24 px,
32 px, etc. If the images are not provided within these sizes, Windows
tries to rescale them, leading to unexpected sizes and masking. Since,
half scaling yields the images in standard sizes, MenuItems are scaled
accordingly.
contributes to
#62 and
#1271 parent 1bc7548 commit 1d54936
File tree
2 files changed
+12
-1
lines changed- bundles/org.eclipse.swt/Eclipse SWT
- common/org/eclipse/swt/internal
- win32/org/eclipse/swt/widgets
2 files changed
+12
-1
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
632 | 636 | | |
633 | 637 | | |
634 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
635 | 643 | | |
636 | 644 | | |
637 | 645 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
786 | 789 | | |
787 | 790 | | |
788 | 791 | | |
| |||
0 commit comments