From 6132c561c0ed1d31bf677a04708e057294336c89 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 7 Dec 2007 09:34:11 +0000 Subject: [PATCH] * Cocoa driver build fix, courtesy of Ben Wiley Sittler. --- caca/driver_cocoa.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/caca/driver_cocoa.m b/caca/driver_cocoa.m index 16ff007..9377822 100644 --- a/caca/driver_cocoa.m +++ b/caca/driver_cocoa.m @@ -722,7 +722,7 @@ static unsigned int get_caca_keycode(NSEvent* event) return caca_keycode; } -static BOOL handle_key_event(struct caca_event *ev, NSEvent* event) +static BOOL handle_key_event(caca_privevent_t *ev, NSEvent* event) { if(!ev || !event) return NO; @@ -774,7 +774,7 @@ static BOOL handle_key_event(struct caca_event *ev, NSEvent* event) } // TODO: handle CACA_EVENT_RESIZE -static BOOL handle_mouse_event(caca_display_t *dp, struct caca_event *ev, +static BOOL handle_mouse_event(caca_display_t *dp, caca_privevent_t *ev, NSEvent* event) { if(!ev || !event) @@ -884,7 +884,7 @@ static void cocoa_display(caca_display_t *dp) [pool release]; } -static int cocoa_get_event(caca_display_t *dp, struct caca_event *ev) +static int cocoa_get_event(caca_display_t *dp, caca_privevent_t *ev) { if(s_quit) { @@ -970,12 +970,12 @@ static int cocoa_set_display_title(caca_display_t *dp, char const *title) return 0; } -static unsigned int cocoa_get_display_width(caca_display_t *dp) +static unsigned int cocoa_get_display_width(caca_display_t const *dp) { return [dp->drv.p->window frame].size.width; } -static unsigned int cocoa_get_display_height(caca_display_t *dp) +static unsigned int cocoa_get_display_height(caca_display_t const *dp) { return [dp->drv.p->window frame].size.height; }