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

    r1462 r1753  
    4242    int x, y;
    4343
    44     cv = cucul_create_canvas(0, 0);
     44    cv = cucul_create_canvas(32, 16);
     45    if(cv == NULL)
     46    {
     47        printf("Failed to create canvas\n");
     48        return 1;
     49    }
     50
    4551    dp = caca_create_display(cv);
     52    if(dp == NULL)
     53    {
     54        printf("Failed to create display\n");
     55        return 1;
     56    }
     57
     58
    4659
    4760    for(x = 0; x < 100; x++)
Note: See TracChangeset for help on using the changeset viewer.