Author: mmlr Date: 2011-10-13 18:37:03 +0200 (Thu, 13 Oct 2011) New Revision: 42843 Changeset: https://dev.haiku-os.org/changeset/42843 Modified: haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp Log: Fix comparison. 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:07:10 UTC (rev 42842) +++ haiku/trunk/src/add-ons/accelerants/intel_extreme/mode.cpp 2011-10-13 16:37:03 UTC (rev 42843) @@ -181,8 +181,8 @@ // We could not read any EDID info. Fallback to creating a list with // only the mode set up by the BIOS. // TODO: support lower modes via scaling and windowing - if (gInfo->head_mode & HEAD_MODE_LVDS_PANEL - && ((gInfo->head_mode & HEAD_MODE_A_ANALOG) == 0)) { + if ((gInfo->head_mode & HEAD_MODE_LVDS_PANEL) != 0 + && (gInfo->head_mode & HEAD_MODE_A_ANALOG) == 0) { size_t size = (sizeof(display_mode) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);