From 1b97dd533e0dfb085794abd215f2754295a2ba56 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 21 Jun 2025 21:53:24 +0800 Subject: [PATCH] fix: The coordinates of the shadow position are allowed to be negative --- src/config/parse_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/parse_config.h b/src/config/parse_config.h index 3ea3c67..c9ff9a4 100644 --- a/src/config/parse_config.h +++ b/src/config/parse_config.h @@ -2095,8 +2095,8 @@ void override_config(void) { shadows = CLAMP_INT(config.shadows, 0, 1); shadows_size = CLAMP_INT(config.shadows_size, 0, 100); shadows_blur = CLAMP_INT(config.shadows_blur, 0, 100); - shadows_position_x = CLAMP_INT(config.shadows_position_x, 0, 100); - shadows_position_y = CLAMP_INT(config.shadows_position_y, 0, 100); + shadows_position_x = CLAMP_INT(config.shadows_position_x, -1000, 1000); + shadows_position_y = CLAMP_INT(config.shadows_position_y, -1000, 1000); focused_opacity = CLAMP_FLOAT(config.focused_opacity, 0.0f, 1.0f); unfocused_opacity = CLAMP_FLOAT(config.unfocused_opacity, 0.0f, 1.0f); memcpy(shadowscolor, config.shadowscolor, sizeof(shadowscolor));