mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
restorable: Refactoring
This commit is contained in:
parent
c782380a1c
commit
03079ba067
@ -375,11 +375,9 @@ func (i *Image) restore() error {
|
|||||||
if c.image.hasDependency() {
|
if c.image.hasDependency() {
|
||||||
panic("not reached")
|
panic("not reached")
|
||||||
}
|
}
|
||||||
vs := []float32{}
|
|
||||||
for _, v := range c.vertices {
|
for _, v := range c.vertices {
|
||||||
vs = append(vs, v...)
|
gimg.DrawImage(c.image.image, v, quadIndices, c.colorm, c.mode, c.filter)
|
||||||
}
|
}
|
||||||
gimg.DrawImage(c.image.image, vs, quadIndices, c.colorm, c.mode, c.filter)
|
|
||||||
}
|
}
|
||||||
i.image = gimg
|
i.image = gimg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user