Browse Source

On fullset set, use current monitor instead of system default monitor when it's not set (#1009)

Maurice Doison 3 năm trước cách đây
mục cha
commit
e7ccac46e1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hxd/Window.hl.hx

+ 1 - 1
hxd/Window.hl.hx

@@ -546,7 +546,7 @@ class Window {
 	}
 
 	function selectedMonitor() : Dynamic {
-		var m = if(monitor == null) 0 else monitor;
+		var m = if(monitor == null) currentMonitorIndex else monitor;
 		#if hldx
 		return dx.Window.getMonitors()[m];
 		#elseif hlsdl