Ecore_Evas: When doing rotation_set_internal, no need to fetch the
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Sep 2011 21:01:15 +0000 (21:01 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Sep 2011 21:01:15 +0000 (21:01 +0000)
ecore_x_window_size here as the returned values are not used anyway,
so avoid the extra function call.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@63523 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_x.c

index b8c32cf..95502af 100644 (file)
@@ -1339,9 +1339,9 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
      {
         if ((ee->w != w) || (ee->h != h))
           {
-             ecore_x_window_resize(ee->prop.window, w, h);
              ee->w = w;
              ee->h = h;
+             ecore_x_window_resize(ee->prop.window, w, h);
              if ((ee->rotation == 90) || (ee->rotation == 270))
                {
                   evas_output_size_set(ee->evas, ee->h, ee->w);
@@ -1487,9 +1487,9 @@ _ecore_evas_x_rotation_set_internal(Ecore_Evas *ee, int rotation, int resize,
           }
         else
           {
-             int w, h;
+             /* int w, h; */
 
-             ecore_x_window_size_get(ee->prop.window, &w, &h);
+             /* ecore_x_window_size_get(ee->prop.window, &w, &h); */
              if ((rotation == 0) || (rotation == 180))
                {
                   evas_output_size_set(ee->evas, ee->w, ee->h);