mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 07:00:03 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ RRMonitorSetFromServer(RRCrtcPtr crtc, RRMonitorPtr monitor)
|
|||
monitor->name = RRMonitorCrtcName(crtc);
|
||||
monitor->pScreen = crtc->pScreen;
|
||||
monitor->numOutputs = crtc->numOutputs;
|
||||
monitor->outputs = calloc(crtc->numOutputs, sizeof(RRCrtc));
|
||||
monitor->outputs = calloc(crtc->numOutputs, sizeof(RROutput));
|
||||
if (!monitor->outputs)
|
||||
return FALSE;
|
||||
for (o = 0; o < crtc->numOutputs; o++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue