From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/renderer/Overlay.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vendor/libghostty-vt/src/renderer/Overlay.zig') diff --git a/vendor/libghostty-vt/src/renderer/Overlay.zig b/vendor/libghostty-vt/src/renderer/Overlay.zig index 62eb004b..46a75be8 100644 --- a/vendor/libghostty-vt/src/renderer/Overlay.zig +++ b/vendor/libghostty-vt/src/renderer/Overlay.zig @@ -20,6 +20,7 @@ const size = @import("size.zig"); const Size = size.Size; const CellSize = size.CellSize; const Image = @import("image.zig").Image; +const global = @import("../global.zig"); const log = std.log.scoped(.renderer_overlay); @@ -337,7 +338,7 @@ fn highlightGridRect( const end_y: f64 = start_y + @as(f64, @floatFromInt(px_height)); // Grab our context to draw - var ctx: z2d.Context = .init(alloc, &self.surface); + var ctx: z2d.Context = .init(global.io(), alloc, &self.surface); defer ctx.deinit(); // Don't need AA because we use sharp edges @@ -394,7 +395,7 @@ fn highlightPixelRect( const end_x: f64 = start_x + @as(f64, @floatFromInt(px_width)); const end_y: f64 = start_y + @as(f64, @floatFromInt(px_height)); - var ctx: z2d.Context = .init(alloc, &self.surface); + var ctx: z2d.Context = .init(global.io(), alloc, &self.surface); defer ctx.deinit(); ctx.setAntiAliasingMode(.none); -- cgit v1.2.3