Pass pointer hotspots to libnsfb.

This commit is contained in:
Michael Drake 2012-08-01 12:52:46 +01:00
parent d84ad62a04
commit 46527795db
2 changed files with 4 additions and 2 deletions

View File

@ -373,7 +373,9 @@ fbtk_set_ptr(fbtk_widget_t *widget, fbtk_callback_info *cbi)
(nsfb_colour_t *)bm->pixdata, (nsfb_colour_t *)bm->pixdata,
bm->width, bm->width,
bm->height, bm->height,
bm->width); bm->width,
bm->hot_x,
bm->hot_y);
return 0; return 0;
} }

View File

@ -427,7 +427,7 @@ framebuffer_finalise(void)
bool bool
framebuffer_set_cursor(struct fbtk_bitmap *bm) 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) nsfb_t *framebuffer_set_surface(nsfb_t *new_nsfb)