internal/restorable: bug fix: needed to copy the stale region when extending an image

Updates #2274
This commit is contained in:
Hajime Hoshi 2022-08-27 23:29:48 +09:00
parent b2f874a244
commit fd5d142453

View File

@ -218,6 +218,7 @@ func (i *Image) Extend(width, height int) *Image {
newImg.clearDrawTrianglesHistory() newImg.clearDrawTrianglesHistory()
newImg.basePixels = i.basePixels newImg.basePixels = i.basePixels
newImg.stale = i.stale newImg.stale = i.stale
newImg.staleRegion = i.staleRegion
i.Dispose() i.Dispose()