Skip to content

Commit 5764fba

Browse files
committed
Call correct api function in GetStockObject, fixes lxn#4
1 parent c13b697 commit 5764fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gdi32.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ func GetPixel(hdc HDC, nXPos, nYPos int32) COLORREF {
13171317
}
13181318

13191319
func GetStockObject(fnObject int32) HGDIOBJ {
1320-
ret, _, _ := syscall.Syscall(getDeviceCaps, 1,
1320+
ret, _, _ := syscall.Syscall(getStockObject, 1,
13211321
uintptr(fnObject),
13221322
0,
13231323
0)

0 commit comments

Comments
 (0)