princeamd pushed a commit to branch enlightenment-0.17.
commit 4c512aa526b41c95fc7430ed439fffec88339a62
Author: Christopher Michael <[email protected]>
Date: Tue Feb 19 10:58:28 2013 +0000
Backport: e02c9fc :: Fix comment. Remove orientation comparison.
Signed-off-by: Christopher Michael <[email protected]>
SVN revision: 84185
Signed-off-by: Deon Thomas <[email protected]>
---
src/modules/conf_randr/e_smart_monitor.c | 31 +------------------------------
1 file changed, 1 insertion(+), 30 deletions(-)
diff --git a/src/modules/conf_randr/e_smart_monitor.c
b/src/modules/conf_randr/e_smart_monitor.c
index ba32f21..afe68ae 100644
--- a/src/modules/conf_randr/e_smart_monitor.c
+++ b/src/modules/conf_randr/e_smart_monitor.c
@@ -1120,41 +1120,12 @@ _e_smart_monitor_frame_cb_rotate_stop(void *data,
Evas_Object *obj EINA_UNUSED,
/* try to get the monitor smart data */
if (!(sd = evas_object_smart_data_get(mon))) return;
- /* set resizing flag */
+ /* set rotating flag */
sd->rotating = EINA_FALSE;
/* get current orientation based on rotation */
orient = _e_smart_monitor_orientation_get(sd->rotation);
- /* run a comparison based on orientation
- *
- * NB: This is done so that after the user is done rotating, if we
- * do not need to change the size of the monitor object, we can just
- * remove the map and get out. This saves us some function calls below */
- if ((sd->crtc.orient == ECORE_X_RANDR_ORIENTATION_ROT_90) ||
- (sd->crtc.orient == ECORE_X_RANDR_ORIENTATION_ROT_270))
- {
- if ((orient == ECORE_X_RANDR_ORIENTATION_ROT_90) ||
- (orient == ECORE_X_RANDR_ORIENTATION_ROT_270))
- {
- /* remove the map */
- evas_object_map_set(sd->o_frame, NULL);
- evas_object_map_enable_set(sd->o_frame, EINA_FALSE);
- return;
- }
- }
- else
- {
- if ((orient == ECORE_X_RANDR_ORIENTATION_ROT_0) ||
- (orient == ECORE_X_RANDR_ORIENTATION_ROT_180))
- {
- /* remove the map */
- evas_object_map_set(sd->o_frame, NULL);
- evas_object_map_enable_set(sd->o_frame, EINA_FALSE);
- return;
- }
- }
-
/* update current orientation */
sd->crtc.orient = orient;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev