diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-18 13:16:49 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-18 13:22:05 +0300 |
commit | f4d1cf7dc6c369227fe2a1d50270f9dacbea18b5 (patch) | |
tree | 1292c40c422ebe6b6fbbe72af0fbee0a56c987f9 /kms++util/src/drawing.cpp | |
parent | 42e433c17db2f386ec3f93ec83802bbe86e1d5ab (diff) |
draw_char: use black bg for yuv
Diffstat (limited to 'kms++util/src/drawing.cpp')
-rw-r--r-- | kms++util/src/drawing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |