From f4d1cf7dc6c369227fe2a1d50270f9dacbea18b5 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 18 May 2017 13:16:49 +0300 Subject: draw_char: use black bg for yuv --- kms++util/src/drawing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kms++util') diff --git a/kms++util/src/drawing.cpp b/kms++util/src/drawing.cpp index fd54940..ffb7feb 100644 --- a/kms++util/src/drawing.cpp +++ b/kms++util/src/drawing.cpp @@ -232,7 +232,7 @@ static void draw_char(IMappedFramebuffer& buf, uint32_t xpos, uint32_t ypos, cha bool b1 = get_char_pixel(c, x + 1, y); draw_yuv422_macropixel(buf, xpos + x, ypos + y, - b0 ? yuvcolor : YUV(), b1 ? yuvcolor : YUV()); + b0 ? yuvcolor : YUV(RGB()), b1 ? yuvcolor : YUV(RGB())); } } break; @@ -247,8 +247,8 @@ static void draw_char(IMappedFramebuffer& buf, uint32_t xpos, uint32_t ypos, cha bool b11 = get_char_pixel(c, x + 1, y + 1); draw_yuv420_macropixel(buf, xpos + x, ypos + y, - b00 ? yuvcolor : YUV(), b10 ? yuvcolor : YUV(), - b01 ? yuvcolor : YUV(), b11 ? yuvcolor : YUV()); + b00 ? yuvcolor : YUV(RGB()), b10 ? yuvcolor : YUV(RGB()), + b01 ? yuvcolor : YUV(RGB()), b11 ? yuvcolor : YUV(RGB())); } } break; -- cgit v1.2.3