Ignore:
Timestamp:
Apr 18, 2006, 5:54:33 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed main canvas-related functions so that they have "canvas" in their name, eg. cucul_create() -> cucul_create_canvas() etc.
  • Moved buffer-related functions to cucul/buffer.c.
Location:
libcaca/trunk/caca
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_conio.c

    r811 r813  
    5757    /* FIXME */
    5858#   endif
    59     _cucul_set_size(dp->cv, dp->drv.p->ti.screenwidth,
    60                             dp->drv.p->ti.screenheight);
     59    _cucul_set_canvas_size(dp->cv, dp->drv.p->ti.screenwidth,
     60                                   dp->drv.p->ti.screenheight);
    6161    return 0;
    6262}
  • libcaca/trunk/caca/driver_gl.c

    r811 r813  
    9797
    9898    if(width && height)
    99         _cucul_set_size(dp->cv, width, height);
     99        _cucul_set_canvas_size(dp->cv, width, height);
    100100
    101101    dp->drv.p->font_width = 9;
  • libcaca/trunk/caca/driver_ncurses.c

    r811 r813  
    152152        }
    153153
    154     _cucul_set_size(dp->cv, COLS, LINES);
     154    _cucul_set_canvas_size(dp->cv, COLS, LINES);
    155155
    156156    return 0;
  • libcaca/trunk/caca/driver_slang.c

    r811 r813  
    165165#endif
    166166
    167     _cucul_set_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows);
     167    _cucul_set_canvas_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows);
    168168
    169169    return 0;
  • libcaca/trunk/caca/driver_vga.c

    r811 r813  
    7575
    7676    /* We don't have much choice */
    77     _cucul_set_size(dp->cv, 80, 25);
     77    _cucul_set_canvas_size(dp->cv, 80, 25);
    7878
    7979    return 0;
  • libcaca/trunk/caca/driver_win32.c

    r811 r813  
    125125        return -1;
    126126
    127     _cucul_set_size(dp->cv, csbi.srWindow.Right - csbi.srWindow.Left + 1,
    128                             csbi.srWindow.Bottom - csbi.srWindow.Top + 1);
     127    _cucul_set_canvas_size(dp->cv, csbi.srWindow.Right - csbi.srWindow.Left + 1,
     128                           csbi.srWindow.Bottom - csbi.srWindow.Top + 1);
    129129
    130130    SetConsoleMode(dp->drv.p->screen, 0);
  • libcaca/trunk/caca/driver_x11.c

    r811 r813  
    7979
    8080    if(width && height)
    81         _cucul_set_size(dp->cv, width, height);
     81        _cucul_set_canvas_size(dp->cv, width, height);
    8282
    8383    dp->drv.p->dpy = XOpenDisplay(NULL);
  • libcaca/trunk/caca/graphics.c

    r811 r813  
    174174    /* Tell libcucul we changed size */
    175175    if(dp->resize.w != dp->cv->width || dp->resize.h != dp->cv->height)
    176         _cucul_set_size(dp->cv, dp->resize.w, dp->resize.h);
     176        _cucul_set_canvas_size(dp->cv, dp->resize.w, dp->resize.h);
    177177}
    178178
Note: See TracChangeset for help on using the changeset viewer.