Changeset 1431 for libcaca/trunk/cucul/frame.c
- Timestamp:
- Nov 27, 2006, 2:56:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/frame.c
r1397 r1431 169 169 170 170 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; 172 174 173 175 return 0; … … 180 182 * The frame index indicates the frame to delete. Valid values range from 181 183 * 0 to the current canvas frame count minus 1. If the frame index is 182 * greater th eor equals the current canvas frame count, the last frame184 * greater than or equals the current canvas frame count, the last frame 183 185 * is deleted. 184 186 * … … 214 216 free(cv->frames[id].attrs); 215 217 free(cv->frames[id].name); 218 if(cv->frames[id].import) 219 free(cv->frames[id].import); 216 220 217 221 for(f = id + 1; f < cv->framecount; f++)
Note: See TracChangeset
for help on using the changeset viewer.