forked from enlightenment/enlightenment
When searching for the next resolution to snap to, do Not skip
refresh_rate checks (allows resize events which keep the current rate). Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 82884
This commit is contained in:
parent
01eb2c4cc0
commit
37908f9b73
|
@ -1062,8 +1062,6 @@ _e_smart_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
|
||||||
/* try to get the objects smart data */
|
/* try to get the objects smart data */
|
||||||
if (!(sd = evas_object_smart_data_get(obj))) return;
|
if (!(sd = evas_object_smart_data_get(obj))) return;
|
||||||
|
|
||||||
if ((sd->w == h) && (sd->w == h)) return;
|
|
||||||
|
|
||||||
sd->w = w;
|
sd->w = w;
|
||||||
sd->h = h;
|
sd->h = h;
|
||||||
|
|
||||||
|
@ -1810,7 +1808,7 @@ _e_smart_monitor_resize_event(E_Smart_Data *sd, Evas_Object *mon, void *event)
|
||||||
// ************************* BEGIN SNAP RESIZING ************************
|
// ************************* BEGIN SNAP RESIZING ************************
|
||||||
|
|
||||||
/* find the next nearest resolution to this new size */
|
/* find the next nearest resolution to this new size */
|
||||||
if ((mode = _e_smart_monitor_resolution_get(sd, nw, nh, EINA_TRUE)))
|
if ((mode = _e_smart_monitor_resolution_get(sd, nw, nh, EINA_FALSE)))
|
||||||
{
|
{
|
||||||
/* reset current mode to match */
|
/* reset current mode to match */
|
||||||
sd->current.mode = mode;
|
sd->current.mode = mode;
|
||||||
|
|
Loading…
Reference in New Issue