Commit 2e07560
[Win32] Replace autoScaleUp of ImageData with proper scaleImageData
In some image constructors, image data are currently auto-scaled. This
works by accident, as the device zoom used for auto scaling conforms to
the zoom of the image to be initialized.
However, to make this explicit, with this change the proper zoom is
passed to scale method. It also makes the autoScaleUp method in DPIUtil
obsolete and removes it.
Co-authored-by: Hannes Wellmann <[email protected]>1 parent 5a22598 commit 2e07560
File tree
2 files changed
+9
-10
lines changed- bundles/org.eclipse.swt/Eclipse SWT
- common/org/eclipse/swt/internal
- win32/org/eclipse/swt/graphics
2 files changed
+9
-10
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | 349 | | |
354 | 350 | | |
355 | 351 | | |
| |||
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| |||
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
474 | | - | |
475 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
| |||
513 | 515 | | |
514 | 516 | | |
515 | 517 | | |
516 | | - | |
517 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
518 | 521 | | |
519 | 522 | | |
520 | 523 | | |
| |||
0 commit comments