Browse Source

DisplayManagerWin: mode==0 is valid

Vincent Lang 9 years ago
parent
commit
99a09b7df5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/display/win/DisplayManagerWin.cpp

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

@@ -153,7 +153,7 @@ int DisplayManagerWin::getDisplayFromPoint(int x, int y)
   foreach (int displayId, displays.keys())
   {
     int currentMode = getCurrentDisplayMode(displayId);
-    if (currentMode > 0)
+    if (currentMode >= 0)
     {
       DEVMODEW modeInfo;
       if (getModeInfo(displayId, currentMode, modeInfo))