Ver código fonte

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 3 anos atrás
pai
commit
cd39a4adc0
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      hxd/Window.hl.hx

+ 4 - 1
hxd/Window.hl.hx

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