Skip to content

Commit

Permalink
Fix ImageShow scaling on v1
Browse files Browse the repository at this point in the history
  • Loading branch information
iseahound committed Jan 8, 2022
1 parent fe0b1b6 commit d9afdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImagePut (for v1).ahk
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ class ImagePut {
; Case 2: Image is scaled.
else {
; Create a graphics context from the device context.
DllCall("gdiplus\GdipCreateFromHDC", "ptr", hdc , "ptr*", &pGraphics:=0)
DllCall("gdiplus\GdipCreateFromHDC", "ptr", hdc , "ptr*", pGraphics:=0)

; Set settings in graphics context.
DllCall("gdiplus\GdipSetPixelOffsetMode", "ptr", pGraphics, "int", 2) ; Half pixel offset.
Expand Down

0 comments on commit d9afdbf

Please sign in to comment.