From c7192a56f4ade8f8e330dd9fb3e6f080e9d39f5a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 1 May 2013 08:31:41 +0100 Subject: [PATCH] Add evas_outbuf_reconfigure function. Signed-off-by: Chris Michael --- src/modules/evas/engines/drm/evas_outbuf.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/modules/evas/engines/drm/evas_outbuf.c b/src/modules/evas/engines/drm/evas_outbuf.c index b4510ba4db..84a435efc8 100644 --- a/src/modules/evas/engines/drm/evas_outbuf.c +++ b/src/modules/evas/engines/drm/evas_outbuf.c @@ -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; +}