Explorar o código

When hxd.Window.getDisplaySettings() filters match all display settings, return the full list instead of an empty list (#1031)

Co-authored-by: mdoison <[email protected]>
Maurice Doison %!s(int64=3) %!d(string=hai) anos
pai
achega
cd39a4adc0
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      hxd/Window.hl.hx

+ 4 - 1
hxd/Window.hl.hx

@@ -545,7 +545,10 @@ class Window {
 				f.push(d);
 			}
 		}
-		return f;
+		if(f.length > 0)
+			return f;
+		else
+			return l;
 	}
 
 	function selectedMonitor() : Dynamic {