Commit 429c588
committed
Smooth Scaling Rounding error fix for win32 #62
This commit contributes to fixing the implementation of Smooth scaling
of the ImageData to get rid of the rounding errors because of multiple
scale ups and downs with fractional scale factor. The commit moves
and modifies the DPIUtil::autoScaleImageData method implementation in
ImageData class to adapt the same.
contributes to
#62 and
#1271 parent 04d20e9 commit 429c588
File tree
2 files changed
+23
-19
lines changed- bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt
- graphics
- internal
2 files changed
+23
-19
lines changedLines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1117 | 1138 | | |
1118 | 1139 | | |
1119 | 1140 | | |
| |||
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 297 | + | |
316 | 298 | | |
| 299 | + | |
317 | 300 | | |
318 | 301 | | |
319 | 302 | | |
| |||
0 commit comments