diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:44:10 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-11-21 08:44:10 +0000 |
commit | 2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2 (patch) | |
tree | 3528ebeb39ee0aadaf7faf0259b583b26172ed5c /src/cursor.c | |
parent | 81ad700162a2fa639a69c1c6e3969ed8f7b3f63b (diff) | |
download | libnsfb-2dd32c7adb7116f1ad9ab2632d9fcf57a31e9fa2.tar.gz |
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
Diffstat (limited to 'src/cursor.c')
-rw-r--r-- | src/cursor.c | 18 |
1 files changed, 15 insertions, 3 deletions
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 <vince@kyllikki.org> + * + * 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 <stdbool.h> #include <stdlib.h> @@ -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) |