diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-01 12:52:46 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-01 12:52:46 +0100 |
commit | 46527795dbf69f08d55692fa1ca85b54a6bcc4dc (patch) | |
tree | 0895eb74d6cf2ffe475299a5e09d74a74f9a5b14 /framebuffer | |
parent | d84ad62a04938ed80455e604135325777d7ea562 (diff) | |
download | netsurf-46527795dbf69f08d55692fa1ca85b54a6bcc4dc.tar.gz netsurf-46527795dbf69f08d55692fa1ca85b54a6bcc4dc.tar.bz2 |
Pass pointer hotspots to libnsfb.
Diffstat (limited to 'framebuffer')
-rw-r--r-- | framebuffer/fbtk/fbtk.c | 4 | ||||
-rw-r--r-- | framebuffer/framebuffer.c | 2 |
2 files changed, 4 insertions, 2 deletions
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) |