Commit e97143c
[Win32] Consider transformation scale in GC.drawImage(image, x, y) #2919
The GC.drawImage(image, x, y) does not consider a potential
transformation applied to the GC when retrieving the best-fitting image
handle. The other GC.drawImage() methods are already updated
accordingly.
The GC.drawImage(image, x, y) method has a special use case of drawing
an image that is currently being rendered by another GC (like used in
double-buffering scenarios for rulers), which also requires potentially
different native and autoscale zooms to be used be applied when
retrieving a handle.
For that reason, this change only delegates a call for
GC.drawImage(image, x, y) to the existing scaling GC.drawImage() method
in case the transformation currently applied to the GC is not the
identity, as that's not the use case for rendering an image currently
generated by another GC.
Fixes #29191 parent 057b24c commit e97143c
1 file changed
Lines changed: 26 additions & 14 deletions
Lines changed: 26 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | 525 | | |
539 | 526 | | |
540 | 527 | | |
| |||
1055 | 1042 | | |
1056 | 1043 | | |
1057 | 1044 | | |
1058 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
1059 | 1071 | | |
1060 | 1072 | | |
1061 | 1073 | | |
| |||
0 commit comments