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

Legend:

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

    r1462 r1753  
    4949    int quit = 0;
    5050
    51     cv = cucul_create_canvas(0, 0);
    52     if(!cv)
     51    cv = cucul_create_canvas(32, 16);
     52    if(cv == NULL)
     53    {
     54        printf("Failed to create canvas\n");
    5355        return 1;
     56    }
     57
    5458    dp = caca_create_display(cv);
    55     if(!dp)
     59    if(dp == NULL)
     60    {
     61        printf("Failed to create display\n");
    5662        return 1;
     63    }
    5764
    5865    caca_set_display_time(dp, 40000);
Note: See TracChangeset for help on using the changeset viewer.