mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
renderer: drop opaque background for preedit cells
This commit is contained in:
@@ -2534,7 +2534,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
self.addPreeditCell(
|
||||
cp,
|
||||
.{ .x = x, .y = range.y },
|
||||
state.colors.background,
|
||||
state.colors.foreground,
|
||||
) catch |err| {
|
||||
log.warn("error building preedit cell, will be invalid x={} y={}, err={}", .{
|
||||
@@ -3264,7 +3263,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
self: *Self,
|
||||
cp: renderer.State.Preedit.Codepoint,
|
||||
coord: terminal.Coordinate,
|
||||
screen_bg: terminal.color.RGB,
|
||||
screen_fg: terminal.color.RGB,
|
||||
) !void {
|
||||
// Render the glyph for our preedit text
|
||||
@@ -3283,16 +3281,6 @@ pub fn Renderer(comptime GraphicsAPI: type) type {
|
||||
return;
|
||||
};
|
||||
|
||||
// Add our opaque background cell
|
||||
self.cells.bgCell(coord.y, coord.x).* = .{
|
||||
screen_bg.r, screen_bg.g, screen_bg.b, 255,
|
||||
};
|
||||
if (cp.wide and coord.x < self.cells.size.columns - 1) {
|
||||
self.cells.bgCell(coord.y, coord.x + 1).* = .{
|
||||
screen_bg.r, screen_bg.g, screen_bg.b, 255,
|
||||
};
|
||||
}
|
||||
|
||||
// Add our text
|
||||
try self.cells.add(self.alloc, .text, .{
|
||||
.atlas = .grayscale,
|
||||
|
||||
Reference in New Issue
Block a user