summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_x/xlib
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2012-09-21 08:17:35 +0000
committerChristopher Michael <cpmichael1@comcast.net>2012-09-21 08:17:35 +0000
commit9507c20a53fe24dbd49580a74d975562ef4803ab (patch)
tree020ee3e3e041897835360b578378c7f869edea56 /legacy/ecore/src/lib/ecore_x/xlib
parentab144cb47475bface1ece6fc9869b135cd4a8ab7 (diff)
Ecore_X: Fix more randr functions. Properly return output Modes from
ecore_x_randr_output_modes_get (more memcpy madness). SVN revision: 76940
Diffstat (limited to 'legacy/ecore/src/lib/ecore_x/xlib')
-rw-r--r--legacy/ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c12
1 files changed, 6 insertions, 6 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 0ee009a..97f1d0c 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
@@ -1590,13 +1590,13 @@ ecore_x_randr_output_modes_get(Ecore_X_Window root,
1590 { 1590 {
1591 if ((modes = malloc(sizeof(Ecore_X_Randr_Mode) * output_info->nmode))) 1591 if ((modes = malloc(sizeof(Ecore_X_Randr_Mode) * output_info->nmode)))
1592 { 1592 {
1593 memcpy(modes, output_info->modes, 1593 int i = 0;
1594 (sizeof(Ecore_X_Randr_Mode) * output_info->nmode)); 1594
1595 if (num) 1595 if (num) *num = output_info->nmode;
1596 *num = output_info->nmode; 1596 if (npreferred) *npreferred = output_info->npreferred;
1597 1597
1598 if (npreferred) 1598 for (i = 0; i < output_info->nmode; i++)
1599 *npreferred = output_info->npreferred; 1599 modes[i] = output_info->modes[i];
1600 } 1600 }
1601 } 1601 }
1602 1602