From: Steinar H. Gunderson Date: Sat, 2 Jan 2016 11:28:48 +0000 (+0100) Subject: Fix an issue where we could get remap warnings and add random scales for fading to... X-Git-Tag: 1.0.0~53 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=2f270d0a7e185ae7b024586bbd26a2bc3c53062c Fix an issue where we could get remap warnings and add random scales for fading to the static picture. --- 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