summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-07-18 22:21:59 +0200
committerMichel Dänzer <michel@daenzer.net>2009-07-18 22:21:59 +0200
commita43c660a00147bfae5ca601f4720b2680b75211f (patch)
treeb43fd06d7a00c22da80a60cb3be749b7367d678f /src/drmmode_display.c
parentf32069f42b3e4643f15148d0b96164def00dcc74 (diff)
Set CRTC active flag to TRUE after a successful KMS mode set.
Otherwise some things like changing the colour map won't work properly.
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index ea2f71f4..42b0b157 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -323,7 +323,9 @@ done:
crtc->y = saved_y;
crtc->rotation = saved_rotation;
crtc->mode = saved_mode;
- }
+ } else
+ crtc->active = TRUE;
+
return ret;
}