Skip to content

Commit 46cb595

Browse files
committed
Merge pull request lxn#20 from ktye/polyline
Polyline
2 parents 9a7734e + a7d5548 commit 46cb595

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gdi32.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ var (
994994
lineTo uintptr
995995
moveToEx uintptr
996996
playEnhMetaFile uintptr
997+
polyline uintptr
997998
rectangle uintptr
998999
resetDC uintptr
9991000
restoreDC uintptr
@@ -1052,6 +1053,7 @@ func init() {
10521053
lineTo = MustGetProcAddress(libgdi32, "LineTo")
10531054
moveToEx = MustGetProcAddress(libgdi32, "MoveToEx")
10541055
playEnhMetaFile = MustGetProcAddress(libgdi32, "PlayEnhMetaFile")
1056+
polyline = MustGetProcAddress(libgdi32, "Polyline")
10551057
rectangle = MustGetProcAddress(libgdi32, "Rectangle")
10561058
resetDC = MustGetProcAddress(libgdi32, "ResetDCW")
10571059
restoreDC = MustGetProcAddress(libgdi32, "RestoreDC")
@@ -1417,6 +1419,15 @@ func PlayEnhMetaFile(hdc HDC, hemf HENHMETAFILE, lpRect *RECT) bool {
14171419
return ret != 0
14181420
}
14191421

1422+
func Polyline(hdc HDC, lppt unsafe.Pointer, cPoints int32) bool {
1423+
ret, _, _ := syscall.Syscall(polyline, 3,
1424+
uintptr(hdc),
1425+
uintptr(lppt),
1426+
uintptr(cPoints))
1427+
1428+
return ret != 0
1429+
}
1430+
14201431
func Rectangle_(hdc HDC, nLeftRect, nTopRect, nRightRect, nBottomRect int32) bool {
14211432
ret, _, _ := syscall.Syscall6(rectangle, 5,
14221433
uintptr(hdc),

0 commit comments

Comments
 (0)