fix [-+][hv]sync handling

This commit is contained in:
Krzysztof Nazarewski
2023-10-17 19:23:14 +02:00
parent cdef9e92c7
commit f7fd645fbd

View File

@@ -48,8 +48,8 @@ template-S() {
local arg
for arg in "$@"; do
case "${(L)arg}" in
[-+]hsync) [[ "${arg:1:1}" == "-" ]] || hsync_polarity=1 ;;
[-+]vsync) [[ "${arg:1:1}" == "-" ]] || vsync_polarity=1 ;;
[-+]hsync) [[ "${arg:0:1}" == "-" ]] || hsync_polarity=1 ;;
[-+]vsync) [[ "${arg:0:1}" == "-" ]] || vsync_polarity=1 ;;
ratio=*|xy_ratio=*) ratio="${arg#*=}" ;;
dpi=*) dpi="${arg#*=}" ;;
edid_version=*) edid_version="${arg#*=}" ;;