From 51d8264eb1e8f705635cd0af2c0e9dddaf855711 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 22 Mar 2012 16:55:36 +0000 Subject: basic fixes for linux framebuffer surface svn path=/trunk/libnsfb/; revision=13550 --- include/libnsfb.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'include/libnsfb.h') 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. -- cgit v1.2.3