Ignore:
Timestamp:
Nov 25, 2007, 3:12:01 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Introduce cucul_get_canvas_chars() and cucul_get_canvas_attrs() to avoid direct cv->chars and cv->attrs access by display drivers.
File:
1 edited

Legend:

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

    r2055 r2056  
    2626#endif
    2727
     28#include "cucul.h"
    2829#include "caca.h"
    2930#include "caca_internals.h"
    30 #include "cucul.h"
    31 #include "cucul_internals.h"
    3231
    3332/** \brief Set the display title.
     
    238237
    239238    /* Tell libcucul we changed size */
    240     if(dp->resize.w != dp->cv->width || dp->resize.h != dp->cv->height)
     239    if(dp->resize.w != cucul_get_canvas_width(dp->cv)
     240        || dp->resize.h != cucul_get_canvas_height(dp->cv))
    241241    {
    242242        dp->resize.allow = 1;
Note: See TracChangeset for help on using the changeset viewer.