Ignore:
Timestamp:
Nov 11, 2006, 3:24:35 PM (13 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/frame.c

    r1341 r1342  
    115115        cv->frames[f] = cv->frames[f - 1];
    116116
     117    if(cv->frame >= id)
     118        cv->frame++;
     119
    117120    cv->frames[id].width = cv->width;
    118121    cv->frames[id].height = cv->height;
     
    123126    cv->frames[id].curattr = cv->curattr;
    124127
    125     if(cv->frame >= id)
    126         cv->frame++;
     128    cv->frames[id].x = cv->frames[cv->frame].x;
     129    cv->frames[id].y = cv->frames[cv->frame].y;
     130    cv->frames[id].handlex = cv->frames[cv->frame].handlex;
     131    cv->frames[id].handley = cv->frames[cv->frame].handley;
    127132
    128133    return 0;
Note: See TracChangeset for help on using the changeset viewer.