mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
restorable: Add more comments
This commit is contained in:
parent
05d78b4232
commit
b89602d900
@ -190,6 +190,7 @@ func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
|
||||
i.image.ReplacePixels(pixels, x, y, width, height)
|
||||
|
||||
// TODO: We wanted to skip copying pixels, but this can cause reading-pixels before the driver is initialized.
|
||||
// For example, Pixels() is called at shareable package when enlarging the shareable images.
|
||||
//
|
||||
// if !IsRestoringEnabled() {
|
||||
// i.makeStale()
|
||||
|
Loading…
Reference in New Issue
Block a user