Commit 46106ebe authored by LRN's avatar LRN Committed by Sebastian Dröge

info: Fix black and underline coloring on W32

Fixes #674320
parent 143f30bf
......@@ -868,10 +868,12 @@ gst_debug_construct_win_color (guint colorinfo)
};
/* we draw black as white, as cmd.exe can only have black bg */
if (colorinfo == 0) {
return ansi_to_win_fg[7];
if ((colorinfo & (GST_DEBUG_FG_MASK | GST_DEBUG_BG_MASK)) == 0) {
color = ansi_to_win_fg[7];
}
if (colorinfo & GST_DEBUG_UNDERLINE) {
color |= BACKGROUND_INTENSITY;
}
if (colorinfo & GST_DEBUG_BOLD) {
color |= FOREGROUND_INTENSITY;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment