From e656963a9a5e60eed55a916b0bd41caa1a97e144 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 11 Nov 2006 17:55:11 +0000 Subject: [PATCH] * Fixed a bug in the caca importer. --- cucul/import.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cucul/import.c b/cucul/import.c index 9b94c94..417429d 100644 --- a/cucul/import.c +++ b/cucul/import.c @@ -285,10 +285,10 @@ static long int import_caca(cucul_canvas_t *cv, } cv->curattr = sscanu32(buf + 4 + 16 + 12); - cv->frames[0].x = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 16); - cv->frames[0].y = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 20); - cv->frames[0].handlex = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 24); - cv->frames[0].handley = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 28); + cv->frames[0].x = (int32_t)sscanu32(buf + 4 + 16 + 0 * 24 + 16); + cv->frames[0].y = (int32_t)sscanu32(buf + 4 + 16 + 0 * 24 + 20); + cv->frames[0].handlex = (int32_t)sscanu32(buf + 4 + 16 + 0 * 24 + 24); + cv->frames[0].handley = (int32_t)sscanu32(buf + 4 + 16 + 0 * 24 + 28); return 4 + control_size + data_size;