summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-06-04 10:28:21 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-04 10:29:28 +0900
commitb8bab8e6f07e3b2076d233208ee417b00db9ae1c (patch)
tree122263d1b6db9c5d40217575977c648ccb3a5d9d
parent1be4dcde039293d139eb2ab66522292f6541fd80 (diff)
Efl.Canvas.Vg.Object: Fix backup size
Summary: Make the size to be backed up and the size to be compared equal. and minor fix Test Plan: N/A Reviewers: Hermet, herb, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11925
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c
index 01a6928e70..0ce2fbb22d 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_object.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_object.c
@@ -727,7 +727,7 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
727 user_entry->path_bounds.w, 727 user_entry->path_bounds.w,
728 user_entry->path_bounds.h); 728 user_entry->path_bounds.h);
729 729
730 if (pd->viewbox.w != 0 || pd->viewbox.h !=0) 730 if (pd->viewbox.w != 0 && pd->viewbox.h !=0)
731 { 731 {
732 double sx = 0, sy= 0; 732 double sx = 0, sy= 0;
733 sx = (double)render_rect.w / (double)pd->viewbox.w; 733 sx = (double)render_rect.w / (double)pd->viewbox.w;
@@ -748,8 +748,8 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
748 (user_entry->h != render_rect.h)) 748 (user_entry->h != render_rect.h))
749 { 749 {
750 ENFN->ector_surface_cache_drop(engine, user_entry->root); 750 ENFN->ector_surface_cache_drop(engine, user_entry->root);
751 user_entry->w = w; 751 user_entry->w = render_rect.w;
752 user_entry->h = h; 752 user_entry->h = render_rect.h;
753 } 753 }
754 754
755 //if the buffer is not created yet 755 //if the buffer is not created yet