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