forked from enlightenment/efl
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:
parent
42d8b6b481
commit
0009c82081
|
@ -1339,9 +1339,9 @@ _ecore_evas_x_resize(Ecore_Evas *ee, int w, int h)
|
||||||
{
|
{
|
||||||
if ((ee->w != w) || (ee->h != h))
|
if ((ee->w != w) || (ee->h != h))
|
||||||
{
|
{
|
||||||
ecore_x_window_resize(ee->prop.window, w, h);
|
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
ee->h = h;
|
ee->h = h;
|
||||||
|
ecore_x_window_resize(ee->prop.window, w, h);
|
||||||
if ((ee->rotation == 90) || (ee->rotation == 270))
|
if ((ee->rotation == 90) || (ee->rotation == 270))
|
||||||
{
|
{
|
||||||
evas_output_size_set(ee->evas, ee->h, ee->w);
|
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
|
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))
|
if ((rotation == 0) || (rotation == 180))
|
||||||
{
|
{
|
||||||
evas_output_size_set(ee->evas, ee->w, ee->h);
|
evas_output_size_set(ee->evas, ee->w, ee->h);
|
||||||
|
|
Loading…
Reference in New Issue