mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-21 19:26:09 +03:00
terminal/kitty-gfx: only enable on Metal for now
This commit is contained in:
@ -2,6 +2,7 @@ const std = @import("std");
|
||||
const assert = std.debug.assert;
|
||||
const Allocator = std.mem.Allocator;
|
||||
|
||||
const renderer = @import("../../renderer.zig");
|
||||
const point = @import("../point.zig");
|
||||
const Terminal = @import("../Terminal.zig");
|
||||
const command = @import("graphics_command.zig");
|
||||
@ -31,6 +32,9 @@ pub fn execute(
|
||||
// if this feature is not supported.
|
||||
if (!terminal.screen.kitty_images.enabled()) return null;
|
||||
|
||||
// Only Metal supports rendering the images, right now.
|
||||
if (comptime renderer.Renderer != renderer.Metal) return null;
|
||||
|
||||
log.debug("executing kitty graphics command: {}", .{cmd.control});
|
||||
|
||||
const resp_: ?Response = switch (cmd.control) {
|
||||
|
Reference in New Issue
Block a user