aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/src/renderer/Overlay.zig
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/renderer/Overlay.zig
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/renderer/Overlay.zig')
-rw-r--r--vendor/libghostty-vt/src/renderer/Overlay.zig5
1 files changed, 3 insertions, 2 deletions
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);