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:
Adam Jackson 2009-09-02 14:40:07 -04:00
parent 291408980f
commit 17545ed80e

View File

@ -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;