Ignore:
Timestamp:
Mar 8, 2006, 12:27:23 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Cosmetic changes here and there.
File:
1 edited

Legend:

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

    r550 r551  
    104104unsigned int caca_get_mouse_x(caca_t *kk)
    105105{
    106     if(kk->mouse_x >= kk->qq->width)
    107         kk->mouse_x = kk->qq->width - 1;
    108 
    109     return kk->mouse_x;
     106    if(kk->mouse.x >= kk->qq->width)
     107        kk->mouse.x = kk->qq->width - 1;
     108
     109    return kk->mouse.x;
    110110}
    111111
     
    121121unsigned int caca_get_mouse_y(caca_t *kk)
    122122{
    123     if(kk->mouse_y >= kk->qq->height)
    124         kk->mouse_y = kk->qq->height - 1;
    125 
    126     return kk->mouse_y;
     123    if(kk->mouse.y >= kk->qq->height)
     124        kk->mouse.y = kk->qq->height - 1;
     125
     126    return kk->mouse.y;
    127127}
    128128
Note: See TracChangeset for help on using the changeset viewer.