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/blit.c

    r1462 r1753  
    4444    caca_display_t *dp;
    4545
    46     cv = cucul_create_canvas(0, 0);
     46    cv = cucul_create_canvas(32, 16);
     47    if(cv == NULL)
     48    {
     49        printf("Failed to create canvas\n");
     50        return 1;
     51    }
     52
    4753    dp = caca_create_display(cv);
     54    if(dp == NULL)
     55    {
     56        printf("Failed to create display\n");
     57        return 1;
     58    }
    4859
    4960    sprite = cucul_create_canvas(0, 0);
Note: See TracChangeset for help on using the changeset viewer.