Ignore:
Timestamp:
Mar 10, 2006, 11:01:22 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Use the internal version of cucul_set_size in output drivers so that they can force a resize. We need to find a way to make those specific cucul - caca interactions unavailable to the clueless user.
Location:
libcaca/trunk/caca
Files:
7 edited

Legend:

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

    r567 r582  
    5959    /* FIXME */
    6060#   endif
    61     cucul_set_size(kk->qq, kk->drv.p->ti.screenwidth,
    62                            kk->drv.p->ti.screenheight);
     61    _cucul_set_size(kk->qq, kk->drv.p->ti.screenwidth,
     62                            kk->drv.p->ti.screenheight);
    6363    return 0;
    6464}
  • libcaca/trunk/caca/driver_gl.c

    r558 r582  
    109109
    110110    if(width && height)
    111         cucul_set_size(kk->qq, width, height);
     111        _cucul_set_size(kk->qq, width, height);
    112112
    113113    kk->drv.p->font_width = 9;
  • libcaca/trunk/caca/driver_ncurses.c

    r557 r582  
    149149        }
    150150
    151     cucul_set_size(kk->qq, COLS, LINES);
     151    _cucul_set_size(kk->qq, COLS, LINES);
    152152
    153153    return 0;
  • libcaca/trunk/caca/driver_network.c

    • Property svn:keywords set to Id
    r575 r582  
    1111
    1212/** \file driver_network.c
    13  *  \version \$Id: driver_gl.c 330 2006-03-07 09:17:35Z sam $
     13 *  \version \$Id$
    1414 *  \author Jean-Yves Lamoureux <jylam@lnxscene.org>
    1515 *  \brief Network driver
     
    9090
    9191
    92     cucul_set_size(kk->qq, kk->drv.p->width, kk->drv.p->height);
     92    _cucul_set_size(kk->qq, kk->drv.p->width, kk->drv.p->height);
    9393
    9494
  • libcaca/trunk/caca/driver_win32.c

    r557 r582  
    123123    /* Sample code to get the biggest possible window */
    124124    //size = GetLargestConsoleWindowSize(kk->drv.p->hout);
    125     cucul_set_size(kk->qq, csbi.srWindow.Right - csbi.srWindow.Left + 1,
    126                            csbi.srWindow.Bottom - csbi.srWindow.Top + 1);
     125    _cucul_set_size(kk->qq, csbi.srWindow.Right - csbi.srWindow.Left + 1,
     126                            csbi.srWindow.Bottom - csbi.srWindow.Top + 1);
    127127    size.X = kk->qq->width;
    128128    size.Y = kk->qq->height;
  • libcaca/trunk/caca/driver_x11.c

    r557 r582  
    9898
    9999    if(width && height)
    100         cucul_set_size(kk->qq, width, height);
     100        _cucul_set_size(kk->qq, width, height);
    101101
    102102    kk->drv.p->dpy = XOpenDisplay(NULL);
  • libcaca/trunk/caca/graphics.c

    r564 r582  
    4747 *  If libcaca runs in a window, get the usable window width. This value can
    4848 *  be used for aspect ratio calculation. If libcaca does not run in a window
    49  *  or if there is no way to know the font size, assume a 6x10 font is being
    50  *  used. Note that the units are not necessarily pixels.
     49 *  or if there is no way to know the font size, most drivers will assume a
     50 *  6x10 font is being used. Note that the units are not necessarily pixels.
    5151 *
    5252 *  \return The window width.
Note: See TracChangeset for help on using the changeset viewer.