rrmonitor: allocate using the correct type
Monitor outputs are of type RROutput, not RRCrtc. (Which are both XID, so this makes no difference in practice, other than being technically correct.) Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
ff410c56bf
commit
94e7ca6a56
|
@ -92,7 +92,7 @@ RRMonitorSetFromServer(RRCrtcPtr crtc, RRMonitorPtr monitor)
|
||||||
monitor->name = RRMonitorCrtcName(crtc);
|
monitor->name = RRMonitorCrtcName(crtc);
|
||||||
monitor->pScreen = crtc->pScreen;
|
monitor->pScreen = crtc->pScreen;
|
||||||
monitor->numOutputs = crtc->numOutputs;
|
monitor->numOutputs = crtc->numOutputs;
|
||||||
monitor->outputs = calloc(crtc->numOutputs, sizeof(RRCrtc));
|
monitor->outputs = calloc(crtc->numOutputs, sizeof(RROutput));
|
||||||
if (!monitor->outputs)
|
if (!monitor->outputs)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
for (o = 0; o < crtc->numOutputs; o++)
|
for (o = 0; o < crtc->numOutputs; o++)
|
||||||
|
|
Loading…
Reference in New Issue