Add evas_outbuf_reconfigure function.
authorChris Michael <cp.michael@samsung.com>
Wed, 1 May 2013 07:31:41 +0000 (08:31 +0100)
committerChris Michael <cp.michael@samsung.com>
Wed, 1 May 2013 10:42:05 +0000 (11:42 +0100)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/drm/evas_outbuf.c

index b4510ba..84a435e 100644 (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;
+}