mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 11:40:15 +01:00
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
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue