Ignore:
Timestamp:
Feb 22, 2007, 4:31:39 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added error checks on canvas / display creations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/frames.c

    r1462 r1753  
    3434    /* Create a canvas with 200 frames */
    3535    cv = cucul_create_canvas(0, 0);
     36    if(cv == NULL)
     37    {
     38        printf("Can't create canvas\n");
     39        return -1;
     40    }
     41
    3642    for(frame = 1; frame < 200; frame++)
    3743        cucul_create_frame(cv, frame);
Note: See TracChangeset for help on using the changeset viewer.