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
This commit is contained in:
junsu choi 2020-06-04 10:28:21 +09:00 committed by Hermet Park
parent 1be4dcde03
commit b8bab8e6f0
1 changed files with 3 additions and 3 deletions

View File

@ -727,7 +727,7 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
user_entry->path_bounds.w,
user_entry->path_bounds.h);
if (pd->viewbox.w != 0 || pd->viewbox.h !=0)
if (pd->viewbox.w != 0 && pd->viewbox.h !=0)
{
double sx = 0, sy= 0;
sx = (double)render_rect.w / (double)pd->viewbox.w;
@ -748,8 +748,8 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
(user_entry->h != render_rect.h))
{
ENFN->ector_surface_cache_drop(engine, user_entry->root);
user_entry->w = w;
user_entry->h = h;
user_entry->w = render_rect.w;
user_entry->h = render_rect.h;
}
//if the buffer is not created yet