Refactor shadow generation

Trying to make the code easier to understand. The logic is unchanged.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-01-01 00:15:51 +00:00
parent edb1139507
commit 4aeffa36b8
6 changed files with 298 additions and 330 deletions

View File

@ -2640,9 +2640,7 @@ session_init(session_t *ps_old, int argc, char **argv) {
.cshadow_picture = XCB_NONE,
.white_picture = XCB_NONE,
.gaussian_map = NULL,
.cgsize = 0,
.shadow_corner = NULL,
.shadow_top = NULL,
.shadow_sum = NULL,
.refresh_rate = 0,
.refresh_intv = 0UL,