projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
143f30b
)
info: Fix black and underline coloring on W32
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Wed, 18 Apr 2012 10:35:32 +0000
(14:35 +0400)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Thu, 18 Jul 2013 12:21:22 +0000
(14:21 +0200)
Fixes #674320
gst/gstinfo.c
patch
|
blob
|
history
diff --git
a/gst/gstinfo.c
b/gst/gstinfo.c
index
26670b7
..
2d8f009
100644
(file)
--- a/
gst/gstinfo.c
+++ b/
gst/gstinfo.c
@@
-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;
}