From 46527795dbf69f08d55692fa1ca85b54a6bcc4dc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 1 Aug 2012 12:52:46 +0100 Subject: Pass pointer hotspots to libnsfb. --- framebuffer/fbtk/fbtk.c | 4 +++- framebuffer/framebuffer.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'framebuffer') diff --git a/framebuffer/fbtk/fbtk.c b/framebuffer/fbtk/fbtk.c index b29fe9fb1..4356bb235 100644 --- a/framebuffer/fbtk/fbtk.c +++ b/framebuffer/fbtk/fbtk.c @@ -373,7 +373,9 @@ fbtk_set_ptr(fbtk_widget_t *widget, fbtk_callback_info *cbi) (nsfb_colour_t *)bm->pixdata, bm->width, bm->height, - bm->width); + bm->width, + bm->hot_x, + bm->hot_y); return 0; } diff --git a/framebuffer/framebuffer.c b/framebuffer/framebuffer.c index fda8aae0d..da80a135a 100644 --- a/framebuffer/framebuffer.c +++ b/framebuffer/framebuffer.c @@ -427,7 +427,7 @@ framebuffer_finalise(void) bool framebuffer_set_cursor(struct fbtk_bitmap *bm) { - return nsfb_cursor_set(nsfb, (nsfb_colour_t *)bm->pixdata, bm->width, bm->height, bm->width); + return nsfb_cursor_set(nsfb, (nsfb_colour_t *)bm->pixdata, bm->width, bm->height, bm->width, bm->hot_x, bm->hot_y); } nsfb_t *framebuffer_set_surface(nsfb_t *new_nsfb) -- cgit v1.2.3