e_comp_object: fix the size of effect object 69/287869/1 accepted/tizen/7.0/unified/20230209.070254
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 6 Feb 2023 11:36:05 +0000 (20:36 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 7 Feb 2023 06:02:45 +0000 (15:02 +0900)
the size of effect object should be set with the size of comp object
when map of effect object is disabled, not the size of buffer.
because the size of buffer can be different with the size of comp object
when client attach buffer which is not matched comp object.

Change-Id: I609f29db78d666f5efe18a39d1f295fb23a6af02

src/bin/e_comp_object.c

index 1429913931d5b7de73bc6219370abde1318193bb..88f57273a0e68e59df036c3a711cd8c88b53dde3 100644 (file)
@@ -6316,9 +6316,10 @@ e_comp_object_map_update(Evas_Object *obj)
           {
              ELOGF("TRANSFORM", "map: disable", cw->ec);
              evas_object_map_enable_set(cw->effect_obj, EINA_FALSE);
+             _e_comp_object_map_transform_rect(cw->ec, 0, 0, cw->w, cw->h, NULL, NULL, &tw, &th);
+             evas_object_resize(cw->effect_obj, tw, th);
           }
-        e_pixmap_size_get(ec->pixmap, &bw, &bh);
-        evas_object_resize(cw->effect_obj, bw, bh);
+
         return;
      }