diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 16:55:36 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 16:55:36 +0000 |
commit | 51d8264eb1e8f705635cd0af2c0e9dddaf855711 (patch) | |
tree | 25bdda51e22072965b65545fabea1cf957f6d303 /src/surface/surface.c | |
parent | 4875d9f650071c8cd6d2976ea6f88f18bc8cc10b (diff) | |
download | libnsfb-51d8264eb1e8f705635cd0af2c0e9dddaf855711.tar.gz libnsfb-51d8264eb1e8f705635cd0af2c0e9dddaf855711.tar.bz2 |
basic fixes for linux framebuffer surface
svn path=/trunk/libnsfb/; revision=13550
Diffstat (limited to 'src/surface/surface.c')
-rw-r--r-- | src/surface/surface.c | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/src/surface/surface.c b/src/surface/surface.c index b2cf769..f3127bd 100644 --- a/src/surface/surface.c +++ b/src/surface/surface.c @@ -17,6 +17,8 @@ #define MAX_SURFACES 16 +#define UNUSED(x) ((x) = (x)) + struct nsfb_surface_s { enum nsfb_type_e type; const nsfb_surface_rtns_t *rtns; @@ -56,22 +58,29 @@ static int surface_defaults(nsfb_t *nsfb) static int surface_claim(nsfb_t *nsfb, nsfb_bbox_t *box) { - nsfb=nsfb; - box=box; + UNUSED(nsfb); + UNUSED(box); return 0; } static int surface_update(nsfb_t *nsfb, nsfb_bbox_t *box) { - nsfb=nsfb; - box=box; + UNUSED(nsfb); + UNUSED(box); return 0; } static int surface_cursor(nsfb_t *nsfb, struct nsfb_cursor_s *cursor) { - nsfb=nsfb; - cursor=cursor; + UNUSED(nsfb); + UNUSED(cursor); + return 0; +} + +static int surface_parameters(nsfb_t *nsfb, const char *parameters) +{ + UNUSED(nsfb); + UNUSED(parameters); return 0; } @@ -118,6 +127,10 @@ nsfb_surface_get_rtns(enum nsfb_type_e type) if (rtns->cursor == NULL) { rtns->cursor = surface_cursor; } + + if (rtns->parameters == NULL) { + rtns->parameters = surface_parameters; + } break; } |