Ignore:
Timestamp:
Nov 24, 2007, 12:08:21 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Added as many "const" qualifiers as possible to the public API.
File:
1 edited

Legend:

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

    r1556 r2043  
    126126 *  \return The X mouse coordinate.
    127127 */
    128 unsigned int caca_get_mouse_x(caca_display_t *dp)
     128unsigned int caca_get_mouse_x(caca_display_t const *dp)
    129129{
    130130    if(dp->mouse.x >= dp->cv->width)
    131         dp->mouse.x = dp->cv->width - 1;
     131        return dp->cv->width - 1;
    132132
    133133    return dp->mouse.x;
     
    146146 *  \return The Y mouse coordinate.
    147147 */
    148 unsigned int caca_get_mouse_y(caca_display_t *dp)
     148unsigned int caca_get_mouse_y(caca_display_t const *dp)
    149149{
    150150    if(dp->mouse.y >= dp->cv->height)
    151         dp->mouse.y = dp->cv->height - 1;
     151        return dp->cv->height - 1;
    152152
    153153    return dp->mouse.y;
Note: See TracChangeset for help on using the changeset viewer.