summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-08-30 10:31:41 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-08-30 10:31:41 +0000
commitd021536d2bc6634119bb8ac9b9ca9b58345b7230 (patch)
treee2301290ffb6fa7cf279c2aadf70cbc58a163564 /legacy
parenteb8665bfd415d13fb42fc681a9da0603a1427a3d (diff)
Ecore_X: We can still get output resources even if 'num' is not passed
in. SVN revision: 75868
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c2
1 files changed, 1 insertions, 1 deletions
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 4a4098a..3be89ac 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,
637 XRRScreenResources *res = NULL; 637 XRRScreenResources *res = NULL;
638 Ecore_X_Randr_Output *ret = NULL; 638 Ecore_X_Randr_Output *ret = NULL;
639 639
640 if (num && root && 640 if (root &&
641 (res = _ecore_x_randr_get_screen_resources(_ecore_x_disp, root))) 641 (res = _ecore_x_randr_get_screen_resources(_ecore_x_disp, root)))
642 { 642 {
643 if ((ret = malloc(sizeof(Ecore_X_Randr_Output) * res->noutput))) 643 if ((ret = malloc(sizeof(Ecore_X_Randr_Output) * res->noutput)))