From cd0e8f7861f7a7cdb6986f8c359e9ee28218c419 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 10 Apr 2006 09:00:18 +0000 Subject: [PATCH] * Fixed old bugs I introduced in the exporters. * Fixed exporter headers to make Doxygen happy. --- cucul/export_ansi.c | 6 +++--- cucul/export_html.c | 6 +++--- cucul/export_irc.c | 2 +- cucul/export_ps.c | 2 +- cucul/export_svg.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cucul/export_ansi.c b/cucul/export_ansi.c index 66f922f..c526105 100644 --- a/cucul/export_ansi.c +++ b/cucul/export_ansi.c @@ -9,7 +9,7 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ -/** \file export.c +/** \file export_ansi.c * \version \$Id$ * \author Sam Hocevar * \author Jean-Yves Lamoureux @@ -66,8 +66,8 @@ void _cucul_get_ansi(cucul_t *qq, struct cucul_export *ex) for(x = 0; x < qq->width; x++) { - uint8_t fg = _cucul_argb32_to_ansi4fg(lineattr[x]); - uint8_t bg = _cucul_argb32_to_ansi4bg(lineattr[x]); + uint8_t fg = palette[_cucul_argb32_to_ansi4fg(lineattr[x])]; + uint8_t bg = palette[_cucul_argb32_to_ansi4bg(lineattr[x])]; uint32_t c = linechar[x]; if(fg != prevfg || bg != prevbg) diff --git a/cucul/export_html.c b/cucul/export_html.c index 66e30d8..67b293b 100644 --- a/cucul/export_html.c +++ b/cucul/export_html.c @@ -9,7 +9,7 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ -/** \file export.c +/** \file export_html.c * \version \$Id$ * \author Sam Hocevar * \author Jean-Yves Lamoureux @@ -158,13 +158,13 @@ void _cucul_get_html3(cucul_t *qq, struct cucul_export *ex) len++; cur += sprintf(cur, " 1) cur += sprintf(cur, " colspan=%d", len); cur += sprintf(cur, ">", - _cucul_argb32_to_ansi4fg(lineattr[x])); + palette[_cucul_argb32_to_ansi4fg(lineattr[x])]); for(i = 0; i < len; i++) { diff --git a/cucul/export_irc.c b/cucul/export_irc.c index 8a13e7b..214ad3c 100644 --- a/cucul/export_irc.c +++ b/cucul/export_irc.c @@ -9,7 +9,7 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ -/** \file export.c +/** \file export_irc.c * \version \$Id$ * \author Sam Hocevar * \author Jean-Yves Lamoureux diff --git a/cucul/export_ps.c b/cucul/export_ps.c index 13757a5..21351cc 100644 --- a/cucul/export_ps.c +++ b/cucul/export_ps.c @@ -9,7 +9,7 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ -/** \file export.c +/** \file export_ps.c * \version \$Id$ * \author Sam Hocevar * \author Jean-Yves Lamoureux diff --git a/cucul/export_svg.c b/cucul/export_svg.c index 9d4175c..721b3d9 100644 --- a/cucul/export_svg.c +++ b/cucul/export_svg.c @@ -9,7 +9,7 @@ * http://sam.zoy.org/wtfpl/COPYING for more details. */ -/** \file export.c +/** \file export_svg.c * \version \$Id$ * \author Sam Hocevar * \author Jean-Yves Lamoureux