1 --- libcaca-0.99.beta13b/caca/driver_cocoa.m 2007-11-25 15:00:34.000000000 +0100
2 +++ libcaca/caca/driver_cocoa.m 2008-01-21 17:39:14.000000000 +0100
4 * Copyright (c) 2006 Colin Delacroix <colin@zoy.org>
8 + * $Id: driver_cocoa.m 1445 2007-12-16 01:50:41Z sam $
10 * This library is free software. It comes without any warranty, to
11 * the extent permitted by applicable law. You can redistribute it
16 -static BOOL handle_key_event(struct caca_event *ev, NSEvent* event)
17 +static BOOL handle_key_event(caca_privevent_t *ev, NSEvent* event)
24 // TODO: handle CACA_EVENT_RESIZE
25 -static BOOL handle_mouse_event(caca_display_t *dp, struct caca_event *ev,
26 +static BOOL handle_mouse_event(caca_display_t *dp, caca_privevent_t *ev,
34 -static int cocoa_get_event(caca_display_t *dp, struct caca_event *ev)
35 +static int cocoa_get_event(caca_display_t *dp, caca_privevent_t *ev)
43 -static unsigned int cocoa_get_display_width(caca_display_t *dp)
44 +static unsigned int cocoa_get_display_width(caca_display_t const *dp)
46 return [dp->drv.p->window frame].size.width;
49 -static unsigned int cocoa_get_display_height(caca_display_t *dp)
50 +static unsigned int cocoa_get_display_height(caca_display_t const *dp)
52 return [dp->drv.p->window frame].size.height;