Add evas_outbuf_reconfigure function.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-05-01 08:31:41 +01:00
parent ac4f1191ea
commit c7192a56f4
1 changed files with 15 additions and 0 deletions

View File

@ -27,3 +27,18 @@ evas_outbuf_free(Outbuf *ob)
/* free the allocated outbuf structure */
free(ob);
}
void
evas_outbuf_reconfigure(Outbuf *ob, int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool alpha)
{
/* check for changes */
if ((ob->w == w) && (ob->h == h) && (ob->alpha == alpha) &&
(ob->rotation == rotation) && (ob->depth == depth)) return;
/* set new outbuf properties */
ob->w = w;
ob->h = h;
ob->rotation = rotation;
ob->depth = depth;
ob->alpha = alpha;
}