Ignore:
Timestamp:
Nov 27, 2006, 2:56:37 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Improved vt220 import by adding a persistent context to canvases.
File:
1 edited

Legend:

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

    r1397 r1431  
    169169
    170170    cv->frames[id].name = strdup("frame#--------");
    171     sprintf(cv->frames[id].name + 6, "%.08x", cv->autoinc++);
     171    sprintf(cv->frames[id].name + 6, "%.08x", ++cv->autoinc);
     172
     173    cv->frames[id].import = NULL;
    172174
    173175    return 0;
     
    180182 *  The frame index indicates the frame to delete. Valid values range from
    181183 *  0 to the current canvas frame count minus 1. If the frame index is
    182  *  greater the or equals the current canvas frame count, the last frame
     184 *  greater than or equals the current canvas frame count, the last frame
    183185 *  is deleted.
    184186 *
     
    214216    free(cv->frames[id].attrs);
    215217    free(cv->frames[id].name);
     218    if(cv->frames[id].import)
     219        free(cv->frames[id].import);
    216220
    217221    for(f = id + 1; f < cv->framecount; f++)
Note: See TracChangeset for help on using the changeset viewer.