Commit 59d2913
committed
[win32] Unify scaling inside Control::setBounds
This commit unifies scale up results in Control::setBounds. With zoom
values not dividable by 100 different result depending on using
setBounds(Rectangle) or setBounds(int, int, int, int) were possible.
Scaling the bounds always as rectangle solves this limitation.1 parent 56767ec commit 59d2913
File tree
2 files changed
+20
-7
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Tests/win32/org/eclipse/swt/widgets
- Eclipse SWT/win32/org/eclipse/swt/widgets
2 files changed
+20
-7
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3168 | 3168 | | |
3169 | 3169 | | |
3170 | 3170 | | |
3171 | | - | |
3172 | | - | |
3173 | | - | |
3174 | | - | |
3175 | | - | |
3176 | | - | |
3177 | | - | |
| 3171 | + | |
3178 | 3172 | | |
3179 | 3173 | | |
3180 | 3174 | | |
| |||
0 commit comments