diff options
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r-- | src/drmmode_display.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 4fb20d95..af5e56b9 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -366,8 +366,11 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode, fb_id = drmmode->fb_id; - if (drmmode_crtc->rotate_fb_id) + if (drmmode_crtc->rotate_fb_id) { fb_id = drmmode_crtc->rotate_fb_id; + x = 0; + y = 0; + } ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, fb_id, x, y, output_ids, output_count, &kmode); if (ret) |