From 2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 21 Nov 2011 08:44:10 +0000 Subject: Improve API to allow for RAM surfaces instead of direct blitting Improve and update tests Fix RAM surface Fix VNC surface svn path=/trunk/libnsfb/; revision=13158 --- src/cursor.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/cursor.c') diff --git a/src/cursor.c b/src/cursor.c index f1a3b58..bd9f04b 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -1,3 +1,15 @@ +/* + * Copyright 2010 Vincent Sanders + * + * This file is part of libnsfb, http://www.netsurf-browser.org/ + * Licenced under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + */ + +/** \file + * cursor (implementation). + */ + #include #include @@ -8,7 +20,7 @@ #include "nsfb.h" #include "cursor.h" #include "plot.h" -#include "frontend.h" +#include "surface.h" bool nsfb_cursor_init(nsfb_t *nsfb) { @@ -36,7 +48,7 @@ bool nsfb_cursor_set(nsfb_t *nsfb, const nsfb_colour_t *pixel, int bmp_width, in nsfb->cursor->loc.x1 = nsfb->cursor->loc.x0 + nsfb->cursor->bmp_width; nsfb->cursor->loc.y1 = nsfb->cursor->loc.y0 + nsfb->cursor->bmp_height; - return nsfb->frontend_rtns->cursor(nsfb, nsfb->cursor); + return nsfb->surface_rtns->cursor(nsfb, nsfb->cursor); } bool nsfb_cursor_loc_set(nsfb_t *nsfb, const nsfb_bbox_t *loc) @@ -48,7 +60,7 @@ bool nsfb_cursor_loc_set(nsfb_t *nsfb, const nsfb_bbox_t *loc) nsfb->cursor->loc.x1 = nsfb->cursor->loc.x0 + nsfb->cursor->bmp_width; nsfb->cursor->loc.y1 = nsfb->cursor->loc.y0 + nsfb->cursor->bmp_height; - return nsfb->frontend_rtns->cursor(nsfb, nsfb->cursor); + return nsfb->surface_rtns->cursor(nsfb, nsfb->cursor); } bool nsfb_cursor_loc_get(nsfb_t *nsfb, nsfb_bbox_t *loc) -- cgit v1.2.1