Skip to content

Commit b312081

Browse files
committed
internal/graphicscommand: show attributes for images
1 parent 139d8ee commit b312081

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

internal/graphicscommand/image.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ func LogImagesInfo(images []*Image) {
235235
})
236236
for _, i := range images {
237237
w, h := i.InternalSize()
238-
var screen string
239-
if i.screen {
240-
screen = " (screen)"
238+
var attr string
239+
if i.attribute != "" {
240+
attr = " (" + i.attribute + ")"
241+
} else if i.screen {
242+
attr = " (screen)"
241243
}
242-
debug.FrameLogf(" %d: (%d, %d)%s\n", i.id, w, h, screen)
244+
debug.FrameLogf(" %d: (%d, %d)%s\n", i.id, w, h, attr)
243245
}
244246
}

0 commit comments

Comments
 (0)