mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
graphcis: Refactoring
This commit is contained in:
parent
9c72671232
commit
75049c4048
4
image.go
4
image.go
@ -259,13 +259,11 @@ func (i *Image) DrawImage(img *Image, options *DrawImageOptions) error {
|
|||||||
geom = g
|
geom = g
|
||||||
}
|
}
|
||||||
|
|
||||||
if img.sharedImagePart != nil {
|
dx, dy, _, _ := img.region()
|
||||||
dx, dy, _, _ := img.sharedImagePart.region()
|
|
||||||
sx0 += dx
|
sx0 += dx
|
||||||
sy0 += dy
|
sy0 += dy
|
||||||
sx1 += dx
|
sx1 += dx
|
||||||
sy1 += dy
|
sy1 += dy
|
||||||
}
|
|
||||||
|
|
||||||
mode := opengl.CompositeMode(options.CompositeMode)
|
mode := opengl.CompositeMode(options.CompositeMode)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user