From 61f10dc583f267ba992b2f220ee4493ae566ffd4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 17 Nov 2023 21:11:24 -0800 Subject: [PATCH] renderer/opengl: new gpucell --- src/renderer/OpenGL.zig | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig index 2359b3cff..62232a2de 100644 --- a/src/renderer/OpenGL.zig +++ b/src/renderer/OpenGL.zig @@ -905,14 +905,10 @@ fn addPreeditCell( .glyph_height = 0, .glyph_offset_x = 0, .glyph_offset_y = 0, - .fg_r = 0, - .fg_g = 0, - .fg_b = 0, - .fg_a = 0, - .bg_r = bg.r, - .bg_g = bg.g, - .bg_b = bg.b, - .bg_a = 255, + .r = bg.r, + .g = bg.g, + .b = bg.b, + .a = 255, }); // Add our text @@ -927,14 +923,10 @@ fn addPreeditCell( .glyph_height = glyph.height, .glyph_offset_x = glyph.offset_x, .glyph_offset_y = glyph.offset_y, - .fg_r = fg.r, - .fg_g = fg.g, - .fg_b = fg.b, - .fg_a = 255, - .bg_r = 0, - .bg_g = 0, - .bg_b = 0, - .bg_a = 0, + .r = fg.r, + .g = fg.g, + .b = fg.b, + .a = 255, }); }