fix comp mirrors to work with gl engines...
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 19 May 2013 14:44:15 +0000 (23:44 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 19 May 2013 14:44:15 +0000 (23:44 +0900)
src/bin/e_comp.c

index 898a47b733903b5d673813aff2f24330290a1bd5..fee635bc8e5eca5a21c65935ec4372db59b357bf 100644 (file)
@@ -1976,6 +1976,7 @@ _e_comp_win_mirror_add(E_Comp_Win *cw)
                {
                   Evas_Native_Surface ns;
 
+                  evas_object_image_size_set(o, w, h);
                   ns.version = EVAS_NATIVE_SURFACE_VERSION;
                   ns.type = EVAS_NATIVE_SURFACE_X11;
                   ns.data.x11.visual = cw->vis;
@@ -1996,8 +1997,8 @@ _e_comp_win_mirror_add(E_Comp_Win *cw)
              evas_object_image_data_set(o, pix);
              if (!argb)
                evas_object_image_data_set(cw->obj, pix);
+             evas_object_image_size_set(o, w, h);
           }
-        evas_object_image_size_set(o, w, h);
      }
    else if (cw->real_obj)
      {