Skip to content

Commit 8a8c67d

Browse files
akoch-yattafedejeanne
authored andcommitted
[win32] Refresh GC with Image based on zoom change
This commit adapts the behavior of the commonly used pattern of a GC that draw onto a plain image. In the windows implementation the monitor specific scaling could lead to issues with this pattern, because during creation time of an GC/Image combo it was not always clear with which zoom the final result will be drawn upon. This commit will redraw the GC on an image handle if a new zoom is requested. The handle for the old zoom of the image will be kept, but if another operation of the GC is exeuted it will only be applied on the new handle.
1 parent d72a940 commit 8a8c67d

2 files changed

Lines changed: 121 additions & 83 deletions

File tree

0 commit comments

Comments
 (0)