Explorar el Código

DisplayManagerWin: fix operator precedence issue

This also could in theory make isModeMatching() fail.
Vincent Lang hace 9 años
padre
commit
d18bbf2027
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/display/win/DisplayManagerWin.cpp

+ 1 - 1
src/display/win/DisplayManagerWin.cpp

@@ -210,7 +210,7 @@ bool DisplayManagerWin::isModeMatching(DEVMODEW& modeInfo, DMVideoModePtr videoM
     return false;
   if (videoMode->bitsPerPixel != modeInfo.dmBitsPerPel)
     return false;
-  if (videoMode->interlaced != (modeInfo.dmDisplayFlags & DM_INTERLACED) ? true : false)
+  if (videoMode->interlaced != ((modeInfo.dmDisplayFlags & DM_INTERLACED) ? true : false))
     return false;
 
   return true;