forked from enlightenment/enlightenment
don't clamp bgpreview vsize if bgpreview is a fullscreen overlay
This commit is contained in:
parent
f6b3c1533e
commit
7d5d2c83d1
|
@ -127,17 +127,20 @@ _e_wid_livethumb_resize_job(void *data)
|
|||
zone = e_comp_object_util_zone_get(dd->live);
|
||||
if (!zone) zone = eina_list_data_get(e_comp->zones);
|
||||
evas_object_geometry_get(dd->live, NULL, NULL, &w, &h);
|
||||
w *= 2;
|
||||
h *= 2;
|
||||
if (w > 128)
|
||||
if ((w != zone->w) || (h != zone->h))
|
||||
{
|
||||
w = 128;
|
||||
h = (zone->h * w) / zone->w;
|
||||
}
|
||||
if (h > 128)
|
||||
{
|
||||
h = 128;
|
||||
w = (zone->w * h) / zone->h;
|
||||
w *= 2;
|
||||
h *= 2;
|
||||
if (w > 128)
|
||||
{
|
||||
w = 128;
|
||||
h = (zone->h * w) / zone->w;
|
||||
}
|
||||
if (h > 128)
|
||||
{
|
||||
h = 128;
|
||||
w = (zone->w * h) / zone->h;
|
||||
}
|
||||
}
|
||||
e_livethumb_vsize_set(dd->live, w, h);
|
||||
dd->resize_job = NULL;
|
||||
|
|
Loading…
Reference in New Issue