renderer: handle Kitty images where z < 0 for all placements

This commit is contained in:
Mitchell Hashimoto
2023-11-20 21:34:17 -08:00
parent 86f8bd20db
commit cf8a0bdaec
2 changed files with 6 additions and 0 deletions

View File

@ -1214,6 +1214,9 @@ fn prepKittyGraphics(
self.image_text_end = @intCast(i); self.image_text_end = @intCast(i);
} }
} }
if (self.image_text_end == 0) {
self.image_text_end = @intCast(self.image_placements.items.len);
}
} }
/// Update the configuration. /// Update the configuration.

View File

@ -839,6 +839,9 @@ fn prepKittyGraphics(
self.image_text_end = @intCast(i); self.image_text_end = @intCast(i);
} }
} }
if (self.image_text_end == 0) {
self.image_text_end = @intCast(self.image_placements.items.len);
}
} }
/// rebuildCells rebuilds all the GPU cells from our CPU state. This is a /// rebuildCells rebuilds all the GPU cells from our CPU state. This is a