From 4ecc9ffa63e9978caeb1f676b3a51f9ce386c113 Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Thu, 23 Feb 2012 16:00:40 +0000 Subject: [PATCH] Now, also compile. SVN revision: 68350 --- legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c | 4 +++- 1 file changed, 3 insertions(+), 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 5947887602..426885bd50 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 @@ -2302,13 +2302,15 @@ ecore_x_randr_window_outputs_get(Ecore_X_Window window, int *num) { #ifdef ECORE_XRANDR + Ecore_X_Window root; Ecore_X_Randr_Crtc *crtcs; Ecore_X_Randr_Output *outputs, *ret = NULL; int ncrtcs, noutputs, i, nret = 0; if (_randr_version < RANDR_1_2) goto _ecore_x_randr_current_output_get_fail; - if (!(crtcs = ecore_x_randr_window_crtcs_get(window, num))) + root = ecore_x_window_root_get(window); + if (!(crtcs = ecore_x_randr_window_crtcs_get(window, &ncrtcs))) goto _ecore_x_randr_current_output_get_fail; for (i = 0, nret = 0; i < ncrtcs; i++)