mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
op/paint: set subimage Rect when converting image
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -63,6 +63,7 @@ func NewImageOp(src image.Image) ImageOp {
|
||||
})
|
||||
draw.Draw(dst, dst.Bounds(), src, src.Bounds().Min, draw.Src)
|
||||
return ImageOp{
|
||||
Rect: dst.Bounds(),
|
||||
src: dst,
|
||||
handle: new(int),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user