Author: mmlr Date: 2011-10-13 18:47:02 +0200 (Thu, 13 Oct 2011) New Revision: 42844 Changeset: https://dev.haiku-os.org/changeset/42844 Modified: haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp Log: * 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. Modified: haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp =================================================================== --- haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp 2011-10-13 16:37:03 UTC (rev 42843) +++ haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp 2011-10-13 16:47:02 UTC (rev 42844) @@ -861,7 +861,7 @@ 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 @@ } 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,