Ignore:
Timestamp:
Apr 18, 2006, 2:59:07 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
File:
1 edited

Legend:

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

    r777 r810  
    114114unsigned int caca_get_mouse_x(caca_t *kk)
    115115{
    116     if(kk->mouse.x >= kk->qq->width)
    117         kk->mouse.x = kk->qq->width - 1;
     116    if(kk->mouse.x >= kk->c->width)
     117        kk->mouse.x = kk->c->width - 1;
    118118
    119119    return kk->mouse.x;
     
    132132unsigned int caca_get_mouse_y(caca_t *kk)
    133133{
    134     if(kk->mouse.y >= kk->qq->height)
    135         kk->mouse.y = kk->qq->height - 1;
     134    if(kk->mouse.y >= kk->c->height)
     135        kk->mouse.y = kk->c->height - 1;
    136136
    137137    return kk->mouse.y;
     
    155155        _caca_handle_resize(kk);
    156156        ev->type = CACA_EVENT_RESIZE;
    157         ev->data.resize.w = kk->qq->width;
    158         ev->data.resize.h = kk->qq->height;
     157        ev->data.resize.w = kk->c->width;
     158        ev->data.resize.h = kk->c->height;
    159159        return 1;
    160160    }
     
    192192    if(ev->type == CACA_EVENT_KEY_PRESS
    193193        && kk->events.last_key_event.type
    194         && ev->data.key.c == kk->events.last_key_event.data.key.c
     194        && ev->data.key.ch == kk->events.last_key_event.data.key.ch
    195195        && ev->data.key.ucs4 == kk->events.last_key_event.data.key.ucs4)
    196196    {
Note: See TracChangeset for help on using the changeset viewer.