internal/restorable: remove an image attribute

This commit is contained in:
Hajime Hoshi 2024-10-15 15:15:52 +09:00
parent d1ee7797c7
commit e40e699718

View File

@ -168,15 +168,8 @@ func NewImage(width, height int, imageType ImageType) *Image {
panic("restorable: graphics driver must be ready at NewImage but not") panic("restorable: graphics driver must be ready at NewImage but not")
} }
var attribute string
if needsRestoration() {
switch imageType {
case ImageTypeVolatile:
attribute = "volatile"
}
}
i := &Image{ i := &Image{
image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, attribute), image: graphicscommand.NewImage(width, height, imageType == ImageTypeScreen, ""),
width: width, width: width,
height: height, height: height,
imageType: imageType, imageType: imageType,