Skip to content

Commit f61e2b5

Browse files
committed
Fix the incorrect kernel size in Stack Blur
The valid kernel size range is from 1 to 15. Signed-off-by: Wei-Hsin Yeh <[email protected]>
1 parent b3067ad commit f61e2b5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/multi.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,11 @@ static void apps_blur(twin_screen_t *screen, int x, int y, int w, int h)
304304
twin_composite(scaled_background, 0, 0, &srcop, 0, 0, 0, 0, 0, TWIN_SOURCE,
305305
scaled_background->width, scaled_background->height);
306306

307-
/* Apply blur effect to the scaled background */
308-
twin_stack_blur(scaled_background, 16, 0, scaled_background->width - 1, 0,
307+
/*
308+
* Apply blur effect to the scaled background. The valid kernel size range
309+
* is from 1 to 15.
310+
*/
311+
twin_stack_blur(scaled_background, 15, 0, scaled_background->width - 1, 0,
309312
scaled_background->height - 1);
310313

311314
/* Copy the blurred background to the window */

configs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ config VERTICAL_OFFSET
7474
config SHADOW_BLUR
7575
int "Shadow blur radius"
7676
default 10
77-
range 1 10
77+
range 1 15
7878
depends on DROP_SHADOW
7979

8080
endmenu

0 commit comments

Comments
 (0)