Add eng_output_resize code.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:17:30 +0000 (09:17 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:17:30 +0000 (09:17 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83256

src/modules/evas/engines/wayland_shm/evas_engine.c

index c9a5dd2..d04fedb 100644 (file)
@@ -246,7 +246,15 @@ eng_output_free(void *data)
 static void 
 eng_output_resize(void *data, int w, int h)
 {
+   Render_Engine *re;
 
+   if (!(re = (Render_Engine *)data)) return;
+   re->outbuf_reconfigure(re->ob, w, h, 
+                          re->ob->rotation, re->ob->depth, 
+                          re->ob->priv.destination_alpha);
+   evas_common_tilebuf_free(re->tb);
+   if ((re->tb = evas_common_tilebuf_new(w, h)))
+     evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
 }
 
 static void