mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-06 13:29:48 -05:00
Optimize window blur calculation.
This commit is contained in:
parent
2f2cfae227
commit
10bdd298b8
4 changed files with 11 additions and 6 deletions
3
window.c
3
window.c
|
|
@ -89,7 +89,7 @@ draw_window(void *data)
|
|||
rounded_rect(cr, 1, 1, window->width - 1, window->height - 1, radius);
|
||||
cairo_stroke_preserve(cr);
|
||||
cairo_fill(cr);
|
||||
blur_surface(surface);
|
||||
blur_surface(surface, 16 + radius);
|
||||
|
||||
cairo_translate(cr, -5, -3);
|
||||
cairo_set_line_width (cr, border);
|
||||
|
|
@ -148,7 +148,6 @@ draw_window(void *data)
|
|||
cairo_stroke_preserve(cr);
|
||||
cairo_set_source_rgb(cr, 1, 1, 1);
|
||||
cairo_fill(cr);
|
||||
|
||||
cairo_destroy(cr);
|
||||
|
||||
if (window->buffer != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue