Ignore:
Timestamp:
Mar 24, 2006, 5:51:59 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Merged caca_show_cursor() and caca_hide_cursor() into caca_set_mouse() so that we have one function less.
  • Fixed coding style.
  • Removed FUCKING TABS. .------._

_.----' -.

_.--' `.

_.-' ' ' `. _

.- H A H A H A ' M A I S \/.)

. . .-' / `

|-.(-. ' ` |\
. '\\ V I E U X ' ' - -|

/'') - - ` ' '.' |\_)

|'_._ '' P O R C . . /
@) \ ''' . '/

/ | \)..'-. _ _ . ` '/

.'- -'. . )-- '/'' ,._`' ' /

.' - ` ' .' / ' /,;;;, ,_.---' \ / \
(. .'
',`'.--'/ ' /'-----' | ' / ))

'-'/ _.---' \;;'/ , | |`- |

'--'---' |;| / ,,,,;;;;;;;;;;,,,,, |-' / |

|;'| ,;;;;;;;;;;;;;;;; ;;;/ /|`

,,' /

'

File:
1 edited

Legend:

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

    r688 r689  
    144144}
    145145
    146 /** \brief Show cursor on capable drivers
     146/** \brief Show or hide the mouse pointer.
    147147 *
    148  *  This function shows the cursor on drivers permitting it.
     148 *  This function shows or hides the mouse pointer, for devices that
     149 *  support it.
    149150 *
     151 *  \param flag 0 hides the pointer, 1 shows the system's default pointer
     152 *              (usually an arrow). Other values are reserved for future use.
    150153 */
    151 void caca_show_cursor(caca_t *kk)
     154void caca_set_mouse(caca_t *kk, int flag)
    152155{
    153     if(kk->drv.show_cursor)
    154         kk->drv.show_cursor(kk);
     156    if(kk->drv.set_mouse)
     157        kk->drv.set_mouse(kk, flag);
    155158}
    156 
    157 /** \brief Hide cursor on capable drivers
    158  *
    159  *  This function hides the cursor on drivers permitting it.
    160  *
    161  */
    162 void caca_hide_cursor(caca_t *kk)
    163 {
    164     if(kk->drv.hide_cursor)
    165         kk->drv.hide_cursor(kk);
    166 }
    167 
    168159
    169160/*
Note: See TracChangeset for help on using the changeset viewer.