mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
shareable: Fix wrong variable names
This commit is contained in:
parent
247e4f5b6b
commit
e799a0c6a8
@ -318,8 +318,8 @@ func (i *Image) dispose(markDisposed bool) {
|
||||
i.backend.page.Free(i.node)
|
||||
if !i.backend.page.IsEmpty() {
|
||||
// As this part can be reused, this should be cleared explicitly.
|
||||
x0, y0, x1, y1 := i.region()
|
||||
i.backend.restorable.ReplacePixels(nil, x0, y0, x1, y1)
|
||||
x, y, w, h := i.region()
|
||||
i.backend.restorable.ReplacePixels(nil, x, y, w, h)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user