diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-08-20 16:48:58 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-08-20 17:15:13 -0400 |
commit | 6955fc7a74edf6034a292c31a304577c35e925e6 (patch) | |
tree | 5d1a030c0f3e0055ca4296553736fc66b2d81f15 | |
parent | 465a4ab416b2e5ad53b96702720331a44fffa2fe (diff) |
kms: Don't use fb offset when using shadow buffer
-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, | |||
366 | 366 | ||
367 | 367 | ||
368 | fb_id = drmmode->fb_id; | 368 | fb_id = drmmode->fb_id; |
369 | if (drmmode_crtc->rotate_fb_id) | 369 | if (drmmode_crtc->rotate_fb_id) { |
370 | fb_id = drmmode_crtc->rotate_fb_id; | 370 | fb_id = drmmode_crtc->rotate_fb_id; |
371 | x = 0; | ||
372 | y = 0; | ||
373 | } | ||
371 | ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, | 374 | ret = drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id, |
372 | fb_id, x, y, output_ids, output_count, &kmode); | 375 | fb_id, x, y, output_ids, output_count, &kmode); |
373 | if (ret) | 376 | if (ret) |