From 08627c323196eec1dee2e3dedc5d212489067e38 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 16 Mar 2006 19:10:12 +0000 Subject: [PATCH] ___ ',_`""\ .---, \ :-""``/` | Ahaha mais vieux porc !! `;' //`\ / / __ | ('. |_ ./O)\ \ `) \ _/-. ` `"` |` .-=; ` / /o o \ ,_, . L._._;_.-' . `'-.` ' `. ' '-._. -' --- cucul/export_ps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cucul/export_ps.c b/cucul/export_ps.c index e5603ef..6f2c8ae 100644 --- a/cucul/export_ps.c +++ b/cucul/export_ps.c @@ -30,7 +30,6 @@ #include "cucul_internals.h" static char const *ps_header = - //"%!PS-Adobe-2.0\n" "%!\n" "%% libcaca PDF export\n" "%%LanguageLevel: 2\n" @@ -102,8 +101,8 @@ void _cucul_get_ps(cucul_t *qq, struct cucul_buffer *ex) for(y = qq->height; y--; ) { - uint8_t *lineattr = qq->attr + y * qq->width; - uint32_t *linechar = qq->chars + y * qq->width; + uint8_t *lineattr = qq->attr + (qq->height - y - 1) * qq->width; + uint32_t *linechar = qq->chars + (qq->height - y - 1) * qq->width; for(x = 0; x < qq->width; x++) {