Commit 8d65ddc
[win32] Scale up bounds as rectangle in canvas
This commit adresses render artifacts visible in StyledText with
monitor-specific scaling enabled e.g. on 175%. Reason is that scaling
up all attributes of bounds separately can lead to rounding errors e.g.
between y and height (one being scaled up, the other one not). Scaling
them together as a rectangle solves this limitation.1 parent 413426e commit 8d65ddc
File tree
1 file changed
+2
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+2
-5
lines changedLines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 107 | + | |
| 108 | + | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
| |||
0 commit comments