renderer/opengl: new gpucell

This commit is contained in:
Mitchell Hashimoto
2023-11-17 21:11:24 -08:00
parent 8253fc1f31
commit 61f10dc583

View File

@ -905,14 +905,10 @@ fn addPreeditCell(
.glyph_height = 0, .glyph_height = 0,
.glyph_offset_x = 0, .glyph_offset_x = 0,
.glyph_offset_y = 0, .glyph_offset_y = 0,
.fg_r = 0, .r = bg.r,
.fg_g = 0, .g = bg.g,
.fg_b = 0, .b = bg.b,
.fg_a = 0, .a = 255,
.bg_r = bg.r,
.bg_g = bg.g,
.bg_b = bg.b,
.bg_a = 255,
}); });
// Add our text // Add our text
@ -927,14 +923,10 @@ fn addPreeditCell(
.glyph_height = glyph.height, .glyph_height = glyph.height,
.glyph_offset_x = glyph.offset_x, .glyph_offset_x = glyph.offset_x,
.glyph_offset_y = glyph.offset_y, .glyph_offset_y = glyph.offset_y,
.fg_r = fg.r, .r = fg.r,
.fg_g = fg.g, .g = fg.g,
.fg_b = fg.b, .b = fg.b,
.fg_a = 255, .a = 255,
.bg_r = 0,
.bg_g = 0,
.bg_b = 0,
.bg_a = 0,
}); });
} }