summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-06-19 16:07:06 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-19 16:07:07 +0900
commitb61f755e88b898e51554934682e7cd2526b868ab (patch)
treec705886b19dc3424c81f009809fa92ea77e7110c
parent5e4f81bb6f0884dd4f8c0e7112646291dfbc5ca2 (diff)
elm_scroller: use region of proxy soruce for loop
Summary: If size of elm_sclloer content is too big, then the proxy of elm_scroller to show loop effect does not work. Because evas_gl_common_image_surface_new does not allow bigger size surface than max_texture_size. Reviewers: Hermet, jsuya, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11996
-rw-r--r--src/lib/elementary/elm_scroller.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_scroller.c b/src/lib/elementary/elm_scroller.c
index 8d20030a91..e21b5cba43 100644
--- a/src/lib/elementary/elm_scroller.c
+++ b/src/lib/elementary/elm_scroller.c
@@ -328,6 +328,7 @@ _elm_scroller_efl_ui_widget_on_access_activate(Eo *obj, Elm_Scroller_Data *_pd E
328EOLIAN static void 328EOLIAN static void
329_elm_scroller_efl_canvas_group_group_calculate(Eo *obj, Elm_Scroller_Data *sd) 329_elm_scroller_efl_canvas_group_group_calculate(Eo *obj, Elm_Scroller_Data *sd)
330{ 330{
331 Evas_Coord ovw, ovh;
331 Evas_Coord vw = 0, vh = 0, minw = 0, minh = 0, maxw = 0, maxh = 0, w, h, 332 Evas_Coord vw = 0, vh = 0, minw = 0, minh = 0, maxw = 0, maxh = 0, w, h,
332 vmw, vmh; 333 vmw, vmh;
333 Evas_Coord h_pagesize, v_pagesize; 334 Evas_Coord h_pagesize, v_pagesize;
@@ -345,6 +346,10 @@ _elm_scroller_efl_canvas_group_group_calculate(Eo *obj, Elm_Scroller_Data *sd)
345 346
346 elm_interface_scrollable_content_viewport_geometry_get 347 elm_interface_scrollable_content_viewport_geometry_get
347 (obj, NULL, NULL, &vw, &vh); 348 (obj, NULL, NULL, &vw, &vh);
349
350 ovw = vw;
351 ovh = vh;
352
348 if (xw > 0.0) 353 if (xw > 0.0)
349 { 354 {
350 if ((minw > 0) && (vw < minw)) 355 if ((minw > 0) && (vw < minw))
@@ -372,7 +377,8 @@ _elm_scroller_efl_canvas_group_group_calculate(Eo *obj, Elm_Scroller_Data *sd)
372 { 377 {
373 if (!sd->proxy_content[i]) continue; 378 if (!sd->proxy_content[i]) continue;
374 elm_interface_scrollable_paging_get((Eo *)obj, NULL, NULL, &h_pagesize, &v_pagesize); 379 elm_interface_scrollable_paging_get((Eo *)obj, NULL, NULL, &h_pagesize, &v_pagesize);
375 evas_object_image_fill_set(sd->proxy_content[i], 0, 0, vw, vh); 380 evas_object_image_fill_set(sd->proxy_content[i], 0, 0, ovw, ovh);
381 evas_object_image_load_region_set(sd->proxy_content[i], 0, 0, ovw, ovh);
376 evas_object_size_hint_min_set(sd->proxy_content[i], 382 evas_object_size_hint_min_set(sd->proxy_content[i],
377 h_pagesize, v_pagesize); 383 h_pagesize, v_pagesize);
378 } 384 }