diff options
Diffstat (limited to 'vendor/libghostty-vt/src/renderer/Overlay.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/renderer/Overlay.zig | 5 |
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); |
