diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 9e9be9e2b..d9f55fa8a 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -189,6 +189,11 @@ 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 {