Real-image posters: scale and encode in the background
Done in Draw it took about 200 ms per new poster (BiLinear scale to the box plus PNG encoding), so each step to another title stalled the UI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -447,6 +447,9 @@ func (c *coverView) drawGraphics(screen tcell.Screen, x, y, cols, rows int) bool
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
if id == 0 {
|
||||
return true // being prepared: the place stays empty until it is ready
|
||||
}
|
||||
if c.gfx.debug != nil {
|
||||
if drawn := [5]int{int(id), x, y, cols, rows}; drawn != c.lastDrawn {
|
||||
c.lastDrawn = drawn
|
||||
|
||||
Reference in New Issue
Block a user