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 /include/libnsfb.h | |
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 'include/libnsfb.h')
-rw-r--r-- | include/libnsfb.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/libnsfb.h b/include/libnsfb.h index 330c476..739617e 100644 --- a/include/libnsfb.h +++ b/include/libnsfb.h @@ -118,15 +118,26 @@ int nsfb_update(nsfb_t *nsfb, nsfb_bbox_t *box); */ int nsfb_get_geometry(nsfb_t *nsfb, int *width, int *height, enum nsfb_format_e *format); -/** Alter the geometry of a framebuffer context +/** Alter the geometry of a surface * * @param nsfb The context to alter. * @param width The new display width. * @param height The new display height. - * @param bpp The new display depth. + * @param format The desired surface format. */ int nsfb_set_geometry(nsfb_t *nsfb, int width, int height, enum nsfb_format_e format); +/** Set parameters a surface + * + * Some surface types can take additional parameters for + * attributes. For example the linux surface uses this to allow the + * setting of a different output device + * + * @param nsfb The surface to alter. + * @param parameters The parameters for the surface. + */ +int nsfb_set_parameters(nsfb_t *nsfb, const char *parameters); + /** Obtain the buffer memory base and stride. * * @param nsfb The context to read. |