Real-image posters: blocks while the window is being resized; ARR_TUI_DEBUG_GFX log
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -398,7 +398,7 @@ func cropToBox(b image.Rectangle, cols, rows int, cellAspect float64) image.Rect
|
||||
// color, too many rows or columns, or the terminal could not be written to), so
|
||||
// the caller can draw block characters instead.
|
||||
func (c *coverView) drawGraphics(screen tcell.Screen, x, y, cols, rows int) bool {
|
||||
if c.gfx == nil || screen.Colors() < 1<<24 || cols > maxPlaceholders || rows > maxPlaceholders {
|
||||
if c.gfx == nil || c.gfx.settling() || screen.Colors() < 1<<24 || cols > maxPlaceholders || rows > maxPlaceholders {
|
||||
return false
|
||||
}
|
||||
id, err := c.gfx.show(c.img, cropToBox(c.img.Bounds(), cols, rows, c.aspectOfCells()), cols, rows)
|
||||
|
||||
Reference in New Issue
Block a user