From e40e699718801701d65c0fd804312adfc9beec99 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 15 Oct 2024 15:15:52 +0900 Subject: [PATCH] internal/restorable: remove an image attribute --- internal/restorable/image.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index b974283f1..a58f79cb2 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -168,15 +168,8 @@ func NewImage(width, height int, imageType ImageType) *Image { panic("restorable: graphics driver must be ready at NewImage but not") } - var attribute string - if needsRestoration() { - switch imageType { - case ImageTypeVolatile: - attribute = "volatile" - } - } i := &Image{ - image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, attribute), + image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, ""), width: width, height: height, imageType: imageType,