randr: fixup crtc and output destroy
if you are moving pointers, you want to move the pointers not just a byte
This commit is contained in:
parent
81f8b652d9
commit
76bf3cd7b8
|
@ -128,7 +128,7 @@ xf86CrtcDestroy (xf86CrtcPtr crtc)
|
||||||
{
|
{
|
||||||
memmove (&xf86_config->crtc[c],
|
memmove (&xf86_config->crtc[c],
|
||||||
&xf86_config->crtc[c+1],
|
&xf86_config->crtc[c+1],
|
||||||
xf86_config->num_crtc - (c + 1));
|
((xf86_config->num_crtc - (c + 1)) * sizeof(void*)));
|
||||||
xf86_config->num_crtc--;
|
xf86_config->num_crtc--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -596,7 +596,7 @@ xf86OutputDestroy (xf86OutputPtr output)
|
||||||
{
|
{
|
||||||
memmove (&xf86_config->output[o],
|
memmove (&xf86_config->output[o],
|
||||||
&xf86_config->output[o+1],
|
&xf86_config->output[o+1],
|
||||||
xf86_config->num_output - (o + 1));
|
((xf86_config->num_output - (o + 1)) * sizeof(void*)));
|
||||||
xf86_config->num_output--;
|
xf86_config->num_output--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue