Revert "restorable: Don't record pixels when restoring is disabled"

This reverts commit aad7bdc64d.

Reason: This causes application freezing at least on macOS
This commit is contained in:
Hajime Hoshi 2019-02-02 18:39:51 +09:00
parent 204b0e72d6
commit bcd9db669d

View File

@ -189,11 +189,6 @@ func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
}
i.image.ReplacePixels(pixels, x, y, width, height)
if !IsRestoringEnabled() {
i.makeStale()
return
}
if x == 0 && y == 0 && width == w && height == h {
if pixels != nil {
if i.basePixels == nil {