font/shaper: remove old pre-renderstate logic

This commit is contained in:
Mitchell Hashimoto
2025-11-20 21:42:27 -08:00
parent c892599385
commit 3d56a3a02b
4 changed files with 9 additions and 457 deletions

View File

@@ -2414,7 +2414,7 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
var run_iter_opts: font.shape.RunOptions = .{
.grid = self.font_grid,
.cells = cells_slice,
.selection2 = if (selection) |s| s else null,
.selection = if (selection) |s| s else null,
// We want to do font shaping as long as the cursor is
// visible on this viewport.
@@ -2423,11 +2423,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
if (vp.y != y) break :cursor_x null;
break :cursor_x vp.x;
},
// Old stuff
.screen = undefined,
.row = undefined,
.selection = null,
};
run_iter_opts.applyBreakConfig(self.config.font_shaping_break);
var run_iter = self.font_shaper.runIterator(run_iter_opts);