forked from enlightenment/efl
parent
6c1eb13012
commit
98aee0ddde
|
@ -568,7 +568,7 @@ ecore_evas_cocoa_new(Ecore_Cocoa_Window *parent, int x, int y, int w, int h)
|
||||||
#else
|
#else
|
||||||
ERR("Cocoa support in ecore-evas not enabled");
|
ERR("Cocoa support in ecore-evas not enabled");
|
||||||
return NULL;
|
return NULL;
|
||||||
parent = NULL;
|
(void) parent;
|
||||||
x = y = w = h = 0;
|
(void) x; (void) y; (void) w; (void) h;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -537,8 +537,6 @@ _ecore_evas_extn_free(Ecore_Evas *ee)
|
||||||
static void
|
static void
|
||||||
_ecore_evas_resize(Ecore_Evas *ee, int w, int h)
|
_ecore_evas_resize(Ecore_Evas *ee, int w, int h)
|
||||||
{
|
{
|
||||||
Extn *extn;
|
|
||||||
|
|
||||||
if (w < 1) w = 1;
|
if (w < 1) w = 1;
|
||||||
if (h < 1) h = 1;
|
if (h < 1) h = 1;
|
||||||
ee->req.w = w;
|
ee->req.w = w;
|
||||||
|
@ -547,7 +545,12 @@ _ecore_evas_resize(Ecore_Evas *ee, int w, int h)
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
ee->h = h;
|
ee->h = h;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* No need for it if not used later.
|
||||||
|
Extn *extn;
|
||||||
|
|
||||||
extn = ee->engine.buffer.data;
|
extn = ee->engine.buffer.data;
|
||||||
|
*/
|
||||||
if (ee->engine.buffer.image)
|
if (ee->engine.buffer.image)
|
||||||
evas_object_image_size_set(ee->engine.buffer.image, ee->w, ee->h);
|
evas_object_image_size_set(ee->engine.buffer.image, ee->w, ee->h);
|
||||||
/* Server can have many plugs, so I block resize comand from client to server *
|
/* Server can have many plugs, so I block resize comand from client to server *
|
||||||
|
|
Loading…
Reference in New Issue