diff options
| -rw-r--r-- | tools/shader_editor/index.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html index 8834567..afa7cd6 100644 --- a/tools/shader_editor/index.html +++ b/tools/shader_editor/index.html @@ -625,7 +625,6 @@ const loopPeriodInput = document.getElementById('loop-period'); const audioPeakInput = document.getElementById('audio-peak'); const audioPeakValue = document.getElementById('audio-peak-value'); const autoPulseCheckbox = document.getElementById('audio-pulse'); -const resolutionSelect = document.getElementById('resolution'); const loadBtn = document.getElementById('load-btn'); const saveBtn = document.getElementById('save-btn'); const snippetsBtn = document.getElementById('snippets-btn'); @@ -693,11 +692,9 @@ autoPulseCheckbox.addEventListener('change', (e) => { preview.setAutoPulse(e.target.checked); audioPeakInput.disabled = e.target.checked; }); -resolutionSelect.addEventListener('change', updateResolution); function updateResolution() { - const [width, height] = resolutionSelect.value.split('x').map(Number); - preview.setResolution(width, height); + preview.setResolution(1280, 720); } editor.addEventListener('input', () => { |
