mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
parent
143f30bfcb
commit
46106ebe8f
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue