forked from enlightenment/enlightenment
E (RandR): Since we only need one map now (thanks old man), we can
remove the array, and fix the map cleanup also. SVN revision: 77181
This commit is contained in:
parent
0a766a74ea
commit
de780ba00d
|
@ -48,8 +48,8 @@ struct _E_Smart_Data
|
||||||
/* list of event handlers */
|
/* list of event handlers */
|
||||||
Eina_List *hdls;
|
Eina_List *hdls;
|
||||||
|
|
||||||
/* evas_maps for rotation */
|
/* evas_map for rotation */
|
||||||
Evas_Map *map[2];
|
Evas_Map *map;
|
||||||
|
|
||||||
/* container number (for bg preview) */
|
/* container number (for bg preview) */
|
||||||
int con;
|
int con;
|
||||||
|
@ -624,11 +624,11 @@ _e_smart_cb_rotate_start(void *data, Evas_Object *obj __UNUSED__, const char *em
|
||||||
* They will be needed to handle Resize While Rotated */
|
* They will be needed to handle Resize While Rotated */
|
||||||
|
|
||||||
/* create frame 'map' for rotation */
|
/* create frame 'map' for rotation */
|
||||||
sd->map[0] = evas_map_new(4);
|
sd->map = evas_map_new(4);
|
||||||
evas_map_smooth_set(sd->map[0], EINA_TRUE);
|
evas_map_smooth_set(sd->map, EINA_TRUE);
|
||||||
evas_map_alpha_set(sd->map[0], EINA_TRUE);
|
evas_map_alpha_set(sd->map, EINA_TRUE);
|
||||||
evas_map_util_points_populate_from_object(sd->map[0], sd->o_frame);
|
evas_map_util_points_populate_from_object(sd->map, sd->o_frame);
|
||||||
evas_object_map_set(sd->o_frame, sd->map[0]);
|
evas_object_map_set(sd->o_frame, sd->map);
|
||||||
evas_object_map_enable_set(sd->o_frame, EINA_TRUE);
|
evas_object_map_enable_set(sd->o_frame, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -644,8 +644,7 @@ _e_smart_cb_rotate_stop(void *data, Evas_Object *obj __UNUSED__, const char *emi
|
||||||
|
|
||||||
e_layout_child_lower(mon);
|
e_layout_child_lower(mon);
|
||||||
|
|
||||||
if (sd->map[0]) evas_map_free(sd->map[0]);
|
if (sd->map) evas_map_free(sd->map);
|
||||||
if (sd->map[1]) evas_map_free(sd->map[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue