Ignore:
Timestamp:
Nov 25, 2007, 3:12:01 PM (13 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/caca.c

    r2055 r2056  
    3434
    3535#include "cucul.h"
    36 #include "cucul_internals.h"
    3736#include "caca.h"
    3837#include "caca_internals.h"
     
    130129
    131130    /* Mouse position */
    132     dp->mouse.x = dp->cv->width / 2;
    133     dp->mouse.y = dp->cv->height / 2;
     131    dp->mouse.x = cucul_get_canvas_width(dp->cv) / 2;
     132    dp->mouse.y = cucul_get_canvas_height(dp->cv) / 2;
    134133
    135134    /* Resize events */
Note: See TracChangeset for help on using the changeset viewer.