Commit 17545ed8 authored by Adam Jackson's avatar Adam Jackson 🎧

randr: Fix crtcs using set_mode_major()

We'd never mark the crtc as active, meaning (among other things) gamma
upload wouldn't work.
parent 29140898
......@@ -368,12 +368,13 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
}
ret = TRUE;
crtc->active = TRUE;
if (scrn->pScreen)
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
done:
if (!ret) {
if (ret) {
crtc->active = TRUE;
if (scrn->pScreen)
xf86CrtcSetScreenSubpixelOrder (scrn->pScreen);
} else {
crtc->x = saved_x;
crtc->y = saved_y;
crtc->rotation = saved_rotation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment