Update C sources

This commit is contained in:
Milan Nikolic 2020-05-04 18:19:50 +02:00
parent efd3445362
commit 7ab77a4730
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
103 changed files with 25993 additions and 13806 deletions

View file

@ -309,11 +309,14 @@ func ImageDraw(dst, src *Image, srcRec, dstRec Rectangle, tint Color) {
}
// ImageDrawRectangle - Draw rectangle within an image
func ImageDrawRectangle(dst *Image, rec Rectangle, color Color) {
func ImageDrawRectangle(dst *Image, x, y, width, height int32, color Color) {
cdst := dst.cptr()
crec := rec.cptr()
cx := (C.int)(x)
cy := (C.int)(y)
cwidth := (C.int)(width)
cheight := (C.int)(height)
ccolor := color.cptr()
C.ImageDrawRectangle(cdst, *crec, *ccolor)
C.ImageDrawRectangle(cdst, cx, cy, cwidth, cheight, *ccolor)
}
// ImageDrawRectangleLines - Draw rectangle lines within an image