Add evas_outbuf_reconfigure function.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
ac4f1191ea
commit
c7192a56f4
|
@ -27,3 +27,18 @@ evas_outbuf_free(Outbuf *ob)
|
||||||
/* free the allocated outbuf structure */
|
/* free the allocated outbuf structure */
|
||||||
free(ob);
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue