Changeset 2129


Ignore:
Timestamp:
Dec 7, 2007, 10:34:11 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Cocoa driver build fix, courtesy of Ben Wiley Sittler.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_cocoa.m

    r2057 r2129  
    723723}
    724724
    725 static BOOL handle_key_event(struct caca_event *ev, NSEvent* event)
     725static BOOL handle_key_event(caca_privevent_t *ev, NSEvent* event)
    726726{
    727727    if(!ev || !event)
     
    775775
    776776// TODO: handle CACA_EVENT_RESIZE
    777 static BOOL handle_mouse_event(caca_display_t *dp, struct caca_event *ev,
     777static BOOL handle_mouse_event(caca_display_t *dp, caca_privevent_t *ev,
    778778                               NSEvent* event)
    779779{
     
    885885}
    886886
    887 static int cocoa_get_event(caca_display_t *dp, struct caca_event *ev)
     887static int cocoa_get_event(caca_display_t *dp, caca_privevent_t *ev)
    888888{
    889889    if(s_quit)
     
    971971}
    972972
    973 static unsigned int cocoa_get_display_width(caca_display_t *dp)
     973static unsigned int cocoa_get_display_width(caca_display_t const *dp)
    974974{
    975975    return [dp->drv.p->window frame].size.width;
    976976}
    977977
    978 static unsigned int cocoa_get_display_height(caca_display_t *dp)
     978static unsigned int cocoa_get_display_height(caca_display_t const *dp)
    979979{
    980980    return [dp->drv.p->window frame].size.height;
Note: See TracChangeset for help on using the changeset viewer.