summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/xlib
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-09-10 10:46:07 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-09-10 10:46:07 +0000
commitfd3f6c4045c450c82229175db93ec507c35f2eae (patch)
treefc4ba324fb1dffdde3336b6c6ed4e3c070bc0426 /legacy/ecore/src/lib/ecore_x/xlib
parent7a654b8f02e8ff247bcebf9db63736f6df219dd9 (diff)
Ecore_X (randr): Correctly list crtcs also (same fix as outputs).
SVN revision: 76392
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c8
1 files changed, 6 insertions, 2 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 b839736..1339a4d 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
@@ -532,8 +532,12 @@ ecore_x_randr_crtcs_get(Ecore_X_Window root,
532 { 532 {
533 if ((ret = malloc(sizeof(Ecore_X_Randr_Crtc) * res->ncrtc))) 533 if ((ret = malloc(sizeof(Ecore_X_Randr_Crtc) * res->ncrtc)))
534 { 534 {
535 memcpy(ret, res->crtcs, (sizeof(Ecore_X_Randr_Crtc) * res->ncrtc)); 535 int i = 0;
536 *num = res->ncrtc; 536
537 if (num) *num = res->ncrtc;
538
539 for (i = 0; i < res->ncrtc; i++)
540 ret[i] = res->crtcs[i];
537 } 541 }
538 542
539 XRRFreeScreenResources(res); 543 XRRFreeScreenResources(res);