summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-10 00:39:56 +0100
committerskal <pascal.massimino@gmail.com>2026-02-10 00:39:56 +0100
commit6a014748d32fc2cc0de8f2408dccca13c8cf0127 (patch)
treeb1c652d5feb1ea6990736433edd1dee6a9852b16 /tools
parent22116e23a352662e8ae1b8c4bab33b78a6a13189 (diff)
fix: Remove resolutionSelect references after removing UI element
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/shader_editor/index.html5
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', () => {