mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 22:44:28 +01:00
parent
ccacf015c2
commit
82178794c3
@ -248,9 +248,10 @@ func (i *Image) Fill(r, g, b, a uint8) {
|
|||||||
panic("shareable: the drawing target image must not be disposed (Fill)")
|
panic("shareable: the drawing target image must not be disposed (Fill)")
|
||||||
}
|
}
|
||||||
i.ensureNotShared()
|
i.ensureNotShared()
|
||||||
backendsM.Unlock()
|
|
||||||
|
|
||||||
i.backend.restorable.Fill(r, g, b, a)
|
i.backend.restorable.Fill(r, g, b, a)
|
||||||
|
|
||||||
|
backendsM.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) ReplacePixels(p []byte) {
|
func (i *Image) ReplacePixels(p []byte) {
|
||||||
|
Loading…
Reference in New Issue
Block a user