resolution: Multi monitor support for Windows. Closes #1297

parent 155fe13d
...@@ -2783,15 +2783,17 @@ get_resolution() { ...@@ -2783,15 +2783,17 @@ get_resolution() {
;; ;;
"Windows") "Windows")
local width="" maparray -t sw < <(wmic path Win32_VideoController get CurrentHorizontalResolution)
width="$(wmic path Win32_VideoController get CurrentHorizontalResolution)" maparray -t sh < <(wmic path Win32_VideoController get CurrentVerticalResolution)
width="${width//CurrentHorizontalResolution/}"
local height="" sw=("${sw[@]//CurrentHorizontalResolution}")
height="$(wmic path Win32_VideoController get CurrentVerticalResolution)" sh=("${sh[@]//CurrentHorizontalResolution}")
height="${height//CurrentVerticalResolution/}"
[[ "$(trim "$width")" ]] && resolution="${width//[[:space:]]}x${height//[[:space:]]}" for ((mn = 0; mn < ${#sw[@]}; mn++)) {
resolution+=${sw[mn]//[[:space:]]}x${sh[mn]//[[:space:]]},
}
resolution=${resolution%,}
;; ;;
"Haiku") "Haiku")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment