changeset 937:823d95e42402 libavutil

log.c: Use parameter passed to macro instead of the equivalent local variable in the only function that uses the macro.
author ramiro
date Wed, 09 Jun 2010 18:30:50 +0000
parents 41b43a526d0d
children 693dea8b44f1
files log.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/log.c	Wed Jun 09 18:13:01 2010 +0000
+++ b/log.c	Wed Jun 09 18:30:50 2010 +0000
@@ -39,7 +39,7 @@
 static const uint8_t color[] = {12,12,12,14,7,7,7};
 static int16_t background, attr_orig;
 static HANDLE con;
-#define set_color(x)  SetConsoleTextAttribute(con, background | color[level])
+#define set_color(x)  SetConsoleTextAttribute(con, background | color[x])
 #define reset_color() SetConsoleTextAttribute(con, attr_orig)
 #else
 static const uint8_t color[]={0x41,0x41,0x11,0x03,9,9,9};