forked from joejulian/gio
op/paint: remove unnecessary check in ImageOp
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+3
-6
@@ -59,12 +59,9 @@ func NewImageOp(src image.Image) ImageOp {
|
||||
color: col,
|
||||
}
|
||||
case *image.RGBA:
|
||||
bounds := src.Bounds()
|
||||
if bounds.Min == (image.Point{}) && src.Stride == bounds.Dx()*4 {
|
||||
return ImageOp{
|
||||
src: src,
|
||||
handle: new(int),
|
||||
}
|
||||
return ImageOp{
|
||||
src: src,
|
||||
handle: new(int),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user