[vlc-commits] commit: change warning color in console ( Sébastien Escudier )

git at videolan.org git at videolan.org
Wed Jul 7 15:38:40 CEST 2010


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Mon Jul  5 14:50:24 2010 +0200| [2dee046f6a5dfaa323be036da7e3631d8096ccef] | committer: Sébastien Escudier 

change warning color in console
Use the same orange than in FFMPEG, instead of yellow.
It wasn't readable in consoles with white background.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2dee046f6a5dfaa323be036da7e3631d8096ccef
---

 src/misc/messages.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/misc/messages.c b/src/misc/messages.c
index 906b489..b2f5c98 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -455,11 +455,11 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type,
  *****************************************************************************/
 static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
 {
-#   define COL(x)  "\033[" #x ";1m"
-#   define RED     COL(31)
-#   define GREEN   COL(32)
-#   define YELLOW  COL(33)
-#   define WHITE   COL(0)
+#   define COL(x,y)  "\033[" #x ";" #y "m"
+#   define RED     COL(31,1)
+#   define GREEN   COL(32,1)
+#   define YELLOW  COL(0,33)
+#   define WHITE   COL(0,1)
 #   define GRAY    "\033[0m"
 
     static const char ppsz_type[4][9] = { "", " error", " warning", " debug" };



More information about the vlc-commits mailing list