parent
7a235d282b
commit
d131b4dfbf
1 changed files with 11 additions and 5 deletions
|
@ -257,11 +257,10 @@ void render_box_shadow(struct fx_render_context *ctx, const struct wlr_box *_box
|
||||||
transform_output_box(&box, wlr_output);
|
transform_output_box(&box, wlr_output);
|
||||||
transform_output_box(&shadow_box, wlr_output);
|
transform_output_box(&shadow_box, wlr_output);
|
||||||
|
|
||||||
struct fx_render_box_shadow_options shadow_options = {
|
struct shadow_data shadow_data = {
|
||||||
.box = shadow_box,
|
.enabled = true,
|
||||||
.window_box = box,
|
.offset_x = offset_x,
|
||||||
.clip = &damage,
|
.offset_y = offset_y,
|
||||||
.corner_radius = corner_radius,
|
|
||||||
.color = {
|
.color = {
|
||||||
.r = color[0],
|
.r = color[0],
|
||||||
.g = color[1],
|
.g = color[1],
|
||||||
|
@ -270,6 +269,13 @@ void render_box_shadow(struct fx_render_context *ctx, const struct wlr_box *_box
|
||||||
},
|
},
|
||||||
.blur_sigma = blur_sigma,
|
.blur_sigma = blur_sigma,
|
||||||
};
|
};
|
||||||
|
struct fx_render_box_shadow_options shadow_options = {
|
||||||
|
.shadow_box = shadow_box,
|
||||||
|
.clip_box = box,
|
||||||
|
.clip = &damage,
|
||||||
|
.shadow_data = &shadow_data,
|
||||||
|
.corner_radius = corner_radius,
|
||||||
|
};
|
||||||
fx_render_pass_add_box_shadow(ctx->pass, &shadow_options);
|
fx_render_pass_add_box_shadow(ctx->pass, &shadow_options);
|
||||||
|
|
||||||
damage_finish:
|
damage_finish:
|
||||||
|
|
Loading…
Add table
Reference in a new issue