forked from enlightenment/efl
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:
parent
1be4dcde03
commit
b8bab8e6f0
|
@ -727,7 +727,7 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
|
||||||
user_entry->path_bounds.w,
|
user_entry->path_bounds.w,
|
||||||
user_entry->path_bounds.h);
|
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;
|
double sx = 0, sy= 0;
|
||||||
sx = (double)render_rect.w / (double)pd->viewbox.w;
|
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))
|
(user_entry->h != render_rect.h))
|
||||||
{
|
{
|
||||||
ENFN->ector_surface_cache_drop(engine, user_entry->root);
|
ENFN->ector_surface_cache_drop(engine, user_entry->root);
|
||||||
user_entry->w = w;
|
user_entry->w = render_rect.w;
|
||||||
user_entry->h = h;
|
user_entry->h = render_rect.h;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if the buffer is not created yet
|
//if the buffer is not created yet
|
||||||
|
|
Loading…
Reference in New Issue