forked from enlightenment/efl
Ecore_X: We can still get output resources even if 'num' is not passed
in. SVN revision: 75868
This commit is contained in:
parent
eb8665bfd4
commit
d021536d2b
|
@ -637,7 +637,7 @@ ecore_x_randr_outputs_get(Ecore_X_Window root,
|
||||||
XRRScreenResources *res = NULL;
|
XRRScreenResources *res = NULL;
|
||||||
Ecore_X_Randr_Output *ret = NULL;
|
Ecore_X_Randr_Output *ret = NULL;
|
||||||
|
|
||||||
if (num && root &&
|
if (root &&
|
||||||
(res = _ecore_x_randr_get_screen_resources(_ecore_x_disp, root)))
|
(res = _ecore_x_randr_get_screen_resources(_ecore_x_disp, root)))
|
||||||
{
|
{
|
||||||
if ((ret = malloc(sizeof(Ecore_X_Randr_Output) * res->noutput)))
|
if ((ret = malloc(sizeof(Ecore_X_Randr_Output) * res->noutput)))
|
||||||
|
|
Loading…
Reference in New Issue