Ignore:
Timestamp:
Nov 11, 2006, 3:24:35 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Add cursor and handle support to canvases. Unused yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/import.c

    r1314 r1342  
    248248        return 0;
    249249
    250     if(control_size < 16 + frames * 24)
     250    if(control_size < 16 + frames * 32)
    251251        goto invalid_caca;
    252252
     
    255255        unsigned int width, height, duration;
    256256        uint32_t attr;
    257         int x, y;
     257        int x, y, handlex, handley;
    258258
    259259        width = sscanu32(buf + 4 + 16 + f * 24);
     
    263263        x = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 16);
    264264        y = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 20);
     265        handlex = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 24);
     266        handley = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 28);
    265267
    266268        expected_size += width * height * 8;
     
    284286
    285287    cv->curattr = sscanu32(buf + 4 + 16 + 12);
     288    cv->frames[0].x = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 16);
     289    cv->frames[0].y = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 20);
     290    cv->frames[0].handlex = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 24);
     291    cv->frames[0].handley = (int32_t)sscanu32(buf + 4 + 16 + f * 24 + 28);
    286292
    287293    return 4 + control_size + data_size;
Note: See TracChangeset for help on using the changeset viewer.