From ec38b9004636cdf58f725ad76e75de41ddae3779 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 13 Oct 2011 16:47:02 +0000 Subject: [PATCH] * Use the actual (virtual) width and height instead of the display timing values, as those might be slightly off (when coming from the GTF for example) and cause needless display scaling. * Tiny cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42844 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/intel_extreme/mode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/mode.cpp b/src/add-ons/accelerants/intel_extreme/mode.cpp index 21646e752e..4734d39415 100644 --- a/src/add-ons/accelerants/intel_extreme/mode.cpp +++ b/src/add-ons/accelerants/intel_extreme/mode.cpp @@ -861,7 +861,7 @@ if (first) { if (divisors.post2 == LVDS_POST2_RATE_FAST) lvds |= LVDS_B0B3PAIRS_POWER_UP | LVDS_CLKB_POWER_UP; else - lvds &= ~( LVDS_B0B3PAIRS_POWER_UP | LVDS_CLKB_POWER_UP); + lvds &= ~(LVDS_B0B3PAIRS_POWER_UP | LVDS_CLKB_POWER_UP); write32(targetRegister, lvds); read32(targetRegister); @@ -988,8 +988,8 @@ if (first) { } write32(INTEL_DISPLAY_B_IMAGE_SIZE, - ((uint32)(target.timing.h_display - 1) << 16) - | ((uint32)target.timing.v_display - 1)); + ((uint32)(target.virtual_width - 1) << 16) + | ((uint32)target.virtual_height - 1)); write32(INTEL_DISPLAY_B_POS, 0); write32(INTEL_DISPLAY_B_PIPE_SIZE,