Skip to content

Commit

Permalink
internal/graphicscommand: show attributes for images
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Feb 28, 2025
1 parent 139d8ee commit b312081
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/graphicscommand/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,12 @@ func LogImagesInfo(images []*Image) {
})
for _, i := range images {
w, h := i.InternalSize()
var screen string
if i.screen {
screen = " (screen)"
var attr string
if i.attribute != "" {
attr = " (" + i.attribute + ")"
} else if i.screen {
attr = " (screen)"
}
debug.FrameLogf(" %d: (%d, %d)%s\n", i.id, w, h, screen)
debug.FrameLogf(" %d: (%d, %d)%s\n", i.id, w, h, attr)
}
}

0 comments on commit b312081

Please sign in to comment.