From ad85aa4500e83ba38b0c506da7d14aff3d9380be Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Oct 2023 01:18:56 -0700 Subject: modules/compose: don't use *res_setting for texture This is vestigial from pre-everything's-til_setting_t days, where the local setting values were just the bare char* value, requiring getting at the related til_setting_t via *res_setting. Now that's unnecessary since the local texture variable is now a til_setting_t*, so clean this bit up. --- src/modules/compose/compose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/compose') diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index 2740939..e45538c 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -355,8 +355,8 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set if (r) return r; - assert(res_setting && *res_setting && (*res_setting)->value_as_nested_settings); - texture_settings = (*res_setting)->value_as_nested_settings; + texture_settings = texture->value_as_nested_settings; + assert(texture_settings); r = compose_texture_module_setup(texture_settings, res_setting, -- cgit v1.2.3