From d021536d2bc6634119bb8ac9b9ca9b58345b7230 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 30 Aug 2012 10:31:41 +0000 Subject: [PATCH] Ecore_X: We can still get output resources even if 'num' is not passed in. SVN revision: 75868 --- legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c index 4a4098a02f..3be89ac1d5 100644 --- a/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c +++ b/legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c @@ -637,7 +637,7 @@ ecore_x_randr_outputs_get(Ecore_X_Window root, XRRScreenResources *res = NULL; Ecore_X_Randr_Output *ret = NULL; - if (num && root && + if (root && (res = _ecore_x_randr_get_screen_resources(_ecore_x_disp, root))) { if ((ret = malloc(sizeof(Ecore_X_Randr_Output) * res->noutput)))