Ecore_Evas: When doing rotation_set_internal, no need to fetch the

ecore_x_window_size here as the returned values are not used anyway,
so avoid the extra function call.



SVN revision: 63523
This commit is contained in:
Christopher Michael 2011-09-21 21:01:15 +00:00
parent 42d8b6b481
commit 0009c82081
1 changed files with 3 additions and 3 deletions

View 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);