From b1b9eef7a1e64f52def6ddb887d7d8035543c1de Mon Sep 17 00:00:00 2001 From: Alistair Buxton Date: Tue, 16 Jun 2009 16:58:12 +0100 Subject: [PATCH] Double height patch. Don't know why it works, but it does. --- src/nv_crtc.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/nv_crtc.c b/src/nv_crtc.c index b8524fb..af99bc1 100644 --- a/src/nv_crtc.c +++ b/src/nv_crtc.c @@ -771,6 +771,15 @@ nv_crtc_mode_set(xf86CrtcPtr crtc, DisplayModePtr mode, NV_TRACE(pScrn, "Output mode on CRTC %d:\n", nv_crtc->head); xf86PrintModeline(pScrn->scrnIndex, adjusted_mode); + mode->CrtcVDisplay = mode->CrtcVDisplay<<1; + mode->CrtcVSyncStart = mode->CrtcVSyncStart<<1; + mode->CrtcVSyncEnd = mode->CrtcVSyncEnd<<1; + mode->CrtcVTotal = mode->CrtcVTotal<<1; + adjusted_mode->CrtcVDisplay = adjusted_mode->CrtcVDisplay<<1; + adjusted_mode->CrtcVSyncStart = adjusted_mode->CrtcVSyncStart<<1; + adjusted_mode->CrtcVSyncEnd = adjusted_mode->CrtcVSyncEnd<<1; + adjusted_mode->CrtcVTotal = adjusted_mode->CrtcVTotal<<1; + /* unlock must come after turning off FP_TG_CONTROL in output_prepare */ nv_lock_vga_crtc_shadow(pNv, nv_crtc->head, -1); -- 1.6.0.4