randr: Fix crtcs using set_mode_major()
We'd never mark the crtc as active, meaning (among other things) gamma upload wouldn't work.
This commit is contained in:
parent
291408980f
commit
17545ed80e
|
@ -368,12 +368,13 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
|
done:
|
||||||
|
if (ret) {
|
||||||
crtc->active = TRUE;
|
crtc->active = TRUE;
|
||||||
if (scrn->pScreen)
|
if (scrn->pScreen)
|
||||||
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
|
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
|
||||||
|
} else {
|
||||||
done:
|
|
||||||
if (!ret) {
|
|
||||||
crtc->x = saved_x;
|
crtc->x = saved_x;
|
||||||
crtc->y = saved_y;
|
crtc->y = saved_y;
|
||||||
crtc->rotation = saved_rotation;
|
crtc->rotation = saved_rotation;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user