From 2f270d0a7e185ae7b024586bbd26a2bc3c53062c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 2 Jan 2016 12:28:48 +0100 Subject: [PATCH] Fix an issue where we could get remap warnings and add random scales for fading to the static picture. --- theme.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme.lua b/theme.lua index 102c877..5210b25 100644 --- a/theme.lua +++ b/theme.lua @@ -230,6 +230,11 @@ function get_input_type(signals, signal_num) end function needs_scale(signals, signal_num, width, height) + if signal_num == STATIC_SIGNAL_NUM then + -- We assume this is already correctly scaled at load time. + return false + end + assert(signal_num == INPUT0_SIGNAL_NUM or signal_num == INPUT1_SIGNAL_NUM) return (signals:get_width(signal_num) ~= width or signals:get_height(signal_num) ~= height) end -- 2.39.2