From eafbe7dd4bb87a852d2850ebc2bd6508682ba569 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 6 Apr 2006 13:49:10 +0000 Subject: [PATCH] * Of course I had to fuck up something. Here, PS export works again. --- cucul/export_ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cucul/export_ps.c b/cucul/export_ps.c index df14b7c..8415288 100644 --- a/cucul/export_ps.c +++ b/cucul/export_ps.c @@ -90,7 +90,7 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_export *ex) for(x = 0; x < qq->width; x++) { cur += sprintf(cur, "1 0 translate\n %s csquare\n", - _cucul_rgba32_to_ansi4bg(*lineattr++)); + palette[_cucul_rgba32_to_ansi4bg(*lineattr++)]); } /* Return to beginning of the line, and jump to the next one */ @@ -111,7 +111,7 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_export *ex) cur += sprintf(cur, "newpath\n"); cur += sprintf(cur, "%d %d moveto\n", (x + 1) * 6, y * 10); cur += sprintf(cur, "%s setrgbcolor\n", - _cucul_rgba32_to_ansi4fg(*lineattr++)); + palette[_cucul_rgba32_to_ansi4fg(*lineattr++)]); if(c < 0x00000020) cur += sprintf(cur, "(?) show\n");