Author: mmlr Date: 2009-10-19 11:06:10 +0200 (Mon, 19 Oct 2009) New Revision: 33652 Changeset: http://dev.haiku-os.org/changeset/33652/haiku Modified: haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp Log: axeld: Restore ignoring the BIOS provided width and height in case the timings suggest a bigger dimension. Also re-add the corresponding comment. Should fix #4810 and might affect #4807 as well. Modified: haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp =================================================================== --- haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp 2009-10-19 08:32:38 UTC (rev 33651) +++ haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp 2009-10-19 09:06:10 UTC (rev 33652) @@ -435,6 +435,14 @@ mode.virtual_width = (value >> 16) + 1; mode.virtual_height = (value & 0xffff) + 1; + // using virtual size based on image size is the 'proper' way to do it, + // however the bios appears to be suggesting scaling or somesuch, so ignore + // the proper virtual dimension for now if they'd suggest a smaller size. + if (mode.virtual_width < mode.timing.h_display) + mode.virtual_width = mode.timing.h_display; + if (mode.virtual_height < mode.timing.v_display) + mode.virtual_height = mode.timing.v_display; + value = read32(controlRegister); switch (value & DISPLAY_CONTROL_COLOR_MASK) { case DISPLAY_CONTROL_RGB32: