Ignore:
Timestamp:
Nov 25, 2007, 6:13:10 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Switch to caca_create_display(NULL) in a few places to document the behaviour.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/doc/tutorial.dox

    r1946 r2062  
    2121    /* Initialise libcaca */
    2222    cucul_canvas_t *cv; caca_display_t *dp; caca_event_t ev;
    23     cv = cucul_create_canvas(0, 0);
    24     if(!cv) return 1;
    25     dp = caca_create_display(cv);
     23    dp = caca_create_display(NULL);
    2624    if(!dp) return 1;
     25    cv = caca_get_canvas(dp);
    2726    /* Set window title */
    2827    caca_set_display_title(dp, "Hello!");
     
    3736    /* Clean up library */
    3837    caca_free_display(dp);
    39     cucul_free_canvas(cv);
    4038
    4139    return 0;
Note: See TracChangeset for help on using the changeset viewer.