From fc64109919bb32d61ab9916f3539f46220caecac Mon Sep 17 00:00:00 2001 From: Digital Artifex <7929434+DigitalArtifex@users.noreply.github.com> Date: Fri, 22 Aug 2025 21:33:10 -0400 Subject: [PATCH] Small bug fix --- package/contents/ui/KomplexModel.qml | 4 ++-- package/contents/ui/ShaderChannel.qml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/contents/ui/KomplexModel.qml b/package/contents/ui/KomplexModel.qml index 59cab8b..1575ead 100644 --- a/package/contents/ui/KomplexModel.qml +++ b/package/contents/ui/KomplexModel.qml @@ -248,8 +248,8 @@ Rectangle channel.mouseBias = json.mouse_scale ? json.mouse_scale : 1.0 channel.iTimeScale = json.time_scale ? json.time_scale : 1.0 channel.iTimeDelta = Qt.binding(() => { return mainItem.iTimeDelta; }) - channel.width = mainItem.iResolution.x - channel.height = mainItem.iResolution.y + channel.width = Qt.binding(() => channel.iResolution.x) + channel.height = Qt.binding(() => channel.iResolution.y) // channel.iChannelResolution = Qt.binding(() => { // return [ diff --git a/package/contents/ui/ShaderChannel.qml b/package/contents/ui/ShaderChannel.qml index 1c5a798..ae7ed54 100644 --- a/package/contents/ui/ShaderChannel.qml +++ b/package/contents/ui/ShaderChannel.qml @@ -112,6 +112,8 @@ Item id: channel visible: false // Set to false by default, main shader needs be set to true in MainWindow.qml + width: iResolution.x + height: iResolution.y // This is used to dynamically load the appropriate channel type based on the `type` property of the channel Loader