Skip to content

Commit

Permalink
Merge pull request #21 from guywithnose/imageBounds
Browse files Browse the repository at this point in the history
Include minimum image bounds in calculation
  • Loading branch information
lEx0 authored Dec 11, 2022
2 parents 75f4dad + 65ae972 commit 0e9c884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoder/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (e *Encoder) Encode(w io.Writer) error {
output := C.encodeNRBBA(
e.config,
(*C.uint8_t)(&e.img.Pix[0]),
C.int(e.img.Rect.Max.X),
C.int(e.img.Rect.Max.Y),
C.int(e.img.Rect.Dx()),
C.int(e.img.Rect.Dy()),
C.int(e.img.Stride),
&size,
)
Expand Down

0 comments on commit 0e9c884

Please sign in to comment.