From a46c4e03a3c6dd5e40f1696f13a5f6115ae6bb13 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Jul 2019 00:31:08 +0200 Subject: [PATCH] Fix some examples. --- theme.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme.rst b/theme.rst index 7ce42f0..abf7d3b 100644 --- a/theme.rst +++ b/theme.rst @@ -146,8 +146,8 @@ scaler before mixing; *ResampleEffect* provides one:: local input0 = scene:add_input() input0:display(0) local input0_scaled = scene:add_optional_effect(ResampleEffect.new()) -- Implicitly uses input0. - scene_or_input.resample_effect:set_int("width", 1280) -- Could also be set in get_scene(). - scene_or_input.resample_effect:set_int("height", 720) + input0_scaled:set_int("width", 1280) -- Could also be set in get_scene(). + input0_scaled:set_int("height", 720) input0_scaled:enable() -- Enable or disable as needed. local input1 = scene:add_input() @@ -174,8 +174,8 @@ directly by the GPU) that instead. The scaling is set up like this:: local input0 = scene:add_input() input0:display(0) local input0_scaled = scene:add_effect({ResampleEffect.new(), ResizeEffect.new()}) -- Implicitly uses input0. - scene_or_input.resample_effect:set_int("width", 1280) -- Just like before. - scene_or_input.resample_effect:set_int("height", 720) + input0_scaled:set_int("width", 1280) -- Just like before. + input0_scaled:set_int("height", 720) -- Pick one in get_scene() like this: input0_scaled:choose(ResizeEffect) -- 2.39.2