Browse Source

* Fixed a bug in the caca importer.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
e656963a9a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      cucul/import.c

+ 4
- 4
cucul/import.c View File

@@ -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;



Loading…
Cancel
Save