Skip to content

Commit 7d1ae68

Browse files
Connected settings to XML
1 parent b331f76 commit 7d1ae68

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

VirtualDriverControl/app.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -515,25 +515,25 @@ class VirtualDriverControl {
515515
this.setCheckboxFromXML(xmlDoc, 'hdr_advanced color_space enabled', 'advanced-gamma');
516516
this.setInputFromXML(xmlDoc, 'hdr_advanced color_space gamma_correction', 'gamma-correction');
517517
this.setSelectFromXML(xmlDoc, 'hdr_advanced color_space primary_color_space', 'primary-color-space');
518-
this.setCheckboxFromXML(xmlDoc, 'hdr_advanced color_space enable_matrix_transform', 'enable-matrix-transform');
518+
this.setCheckboxFromXML(xmlDoc, 'hdr_advanced color_space enable_matrix_transform', 'matrix-transform');
519519

520520
// Auto Resolutions
521-
this.setCheckboxFromXML(xmlDoc, 'auto_resolutions enabled', 'auto-resolution-generation');
521+
this.setCheckboxFromXML(xmlDoc, 'auto_resolutions enabled', 'auto-resolutions');
522522
this.setSelectFromXML(xmlDoc, 'auto_resolutions source_priority', 'source-priority');
523-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_refresh_rate', 'min-refresh-rate');
524-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_refresh_rate', 'max-refresh-rate');
523+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_refresh_rate', 'min-refresh');
524+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_refresh_rate', 'max-refresh');
525525
this.setCheckboxFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering exclude_fractional_rates', 'exclude-fractional-rates');
526-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_resolution_width', 'min-resolution-width');
527-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_resolution_height', 'min-resolution-height');
528-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_resolution_width', 'max-resolution-width');
529-
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_resolution_height', 'max-resolution-height');
526+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_resolution_width', 'min-width');
527+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering min_resolution_height', 'min-height');
528+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_resolution_width', 'max-width');
529+
this.setInputFromXML(xmlDoc, 'auto_resolutions edid_mode_filtering max_resolution_height', 'max-height');
530530
this.setCheckboxFromXML(xmlDoc, 'auto_resolutions preferred_mode use_edid_preferred', 'use-edid-preferred');
531531
this.setInputFromXML(xmlDoc, 'auto_resolutions preferred_mode fallback_width', 'fallback-width');
532532
this.setInputFromXML(xmlDoc, 'auto_resolutions preferred_mode fallback_height', 'fallback-height');
533533
this.setInputFromXML(xmlDoc, 'auto_resolutions preferred_mode fallback_refresh', 'fallback-refresh');
534534

535535
// Advanced Color Processing
536-
this.setCheckboxFromXML(xmlDoc, 'color_advanced bit_depth_management auto_select_from_color_space', 'auto-select-bit-depth');
536+
this.setCheckboxFromXML(xmlDoc, 'color_advanced bit_depth_management auto_select_from_color_space', 'auto-bit-depth');
537537
this.setInputFromXML(xmlDoc, 'color_advanced bit_depth_management force_bit_depth', 'force-bit-depth');
538538
this.setCheckboxFromXML(xmlDoc, 'color_advanced bit_depth_management fp16_surface_support', 'fp16-surface-support');
539539
this.setInputFromXML(xmlDoc, 'color_advanced color_format_extended sdr_white_level', 'sdr-white-level');
@@ -694,20 +694,20 @@ class VirtualDriverControl {
694694
enabled: document.getElementById('advanced-gamma')?.checked || false,
695695
gamma_correction: parseFloat(document.getElementById('gamma-correction')?.value) || 2.2,
696696
primary_color_space: document.getElementById('primary-color-space')?.value || 'sRGB',
697-
enable_matrix_transform: document.getElementById('enable-matrix-transform')?.checked || false
697+
enable_matrix_transform: document.getElementById('matrix-transform')?.checked || false
698698
}
699699
},
700700
auto_resolutions: {
701-
enabled: document.getElementById('auto-resolution-generation')?.checked || false,
701+
enabled: document.getElementById('auto-resolutions')?.checked || false,
702702
source_priority: document.getElementById('source-priority')?.value || 'manual',
703703
edid_mode_filtering: {
704-
min_refresh_rate: parseInt(document.getElementById('min-refresh-rate')?.value) || 24,
705-
max_refresh_rate: parseInt(document.getElementById('max-refresh-rate')?.value) || 240,
704+
min_refresh_rate: parseInt(document.getElementById('min-refresh')?.value) || 24,
705+
max_refresh_rate: parseInt(document.getElementById('max-refresh')?.value) || 240,
706706
exclude_fractional_rates: document.getElementById('exclude-fractional-rates')?.checked || false,
707-
min_resolution_width: parseInt(document.getElementById('min-resolution-width')?.value) || 640,
708-
min_resolution_height: parseInt(document.getElementById('min-resolution-height')?.value) || 480,
709-
max_resolution_width: parseInt(document.getElementById('max-resolution-width')?.value) || 7680,
710-
max_resolution_height: parseInt(document.getElementById('max-resolution-height')?.value) || 4320
707+
min_resolution_width: parseInt(document.getElementById('min-width')?.value) || 640,
708+
min_resolution_height: parseInt(document.getElementById('min-height')?.value) || 480,
709+
max_resolution_width: parseInt(document.getElementById('max-width')?.value) || 7680,
710+
max_resolution_height: parseInt(document.getElementById('max-height')?.value) || 4320
711711
},
712712
preferred_mode: {
713713
use_edid_preferred: document.getElementById('use-edid-preferred')?.checked || false,
@@ -718,7 +718,7 @@ class VirtualDriverControl {
718718
},
719719
color_advanced: {
720720
bit_depth_management: {
721-
auto_select_from_color_space: document.getElementById('auto-select-bit-depth')?.checked || false,
721+
auto_select_from_color_space: document.getElementById('auto-bit-depth')?.checked || false,
722722
force_bit_depth: parseInt(document.getElementById('force-bit-depth')?.value) || 8,
723723
fp16_surface_support: document.getElementById('fp16-surface-support')?.checked || true
724724
},

0 commit comments

Comments
 (0)