Ignore:
Timestamp:
Nov 28, 2007, 5:39:10 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Add Caca::Display#canvas
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/caca-display.c

    r2092 r2093  
    3434{
    3535    caca_display_t *display;
     36    cucul_canvas_t *canvas;
    3637    VALUE cv;
    3738
     
    4142    {
    4243        display = caca_create_display(NULL);
     44        canvas = caca_get_canvas(display);
     45        cv = canvas_create(canvas);
    4346    }
    4447    else
     
    5861
    5962    _SELF = display;
     63
     64    rb_iv_set(self, "@canvas", cv);
    6065
    6166    return self;
Note: See TracChangeset for help on using the changeset viewer.