internal/restorable: bug fix: make all the images stale correctly

This commit is contained in:
Hajime Hoshi 2024-09-08 16:11:57 +09:00
parent 20f8df7fc1
commit b36160d9e7

View File

@ -90,7 +90,7 @@ func resolveStaleImages(graphicsDriver graphicsdriver.Graphics, endFrame bool) e
if disabled.Load() {
disabledOnce.Do(func() {
for img := range theImages.images {
img.makeStale(image.Rectangle{})
img.makeStale(image.Rect(0, 0, img.width, img.height))
}
})
}