diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-11-17 22:23:55 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-11-17 22:23:55 -0500 |
commit | 873302649a3374dfae65aae932a6a12f81c09940 (patch) | |
tree | d651563214ea2938f557cd71b9ac8b0c45b7cfe0 /window.c | |
parent | 8c304f6d9ace435817506b18b228b62787b1ce15 (diff) | |
download | wayland-873302649a3374dfae65aae932a6a12f81c09940.tar.gz wayland-873302649a3374dfae65aae932a6a12f81c09940.tar.xz wayland-873302649a3374dfae65aae932a6a12f81c09940.zip |
Optimize blur a bit more.
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -88,7 +88,7 @@ draw_window(void *data) cairo_set_source_rgba(cr, 0, 0, 0, 0.5); rounded_rect(cr, 0, 0, window->width, window->height, radius); cairo_fill(cr); - blur_surface(surface, 16 + radius); + blur_surface(surface, 24 + radius); cairo_translate(cr, -5, -3); cairo_set_line_width (cr, border); @@ -148,7 +148,6 @@ draw_window(void *data) cairo_set_source_rgb(cr, 1, 1, 1); cairo_fill(cr); cairo_destroy(cr); - if (window->buffer != NULL) buffer_destroy(window->buffer, window->fd); buffer = buffer_create_from_cairo_surface(window->fd, surface); @@ -381,7 +380,7 @@ int main(int argc, char *argv[]) wl_display_set_event_handler(display, event_handler, window); - g_timeout_add(20, draw, window); + g_timeout_add(50, draw, window); g_main_loop_run(loop); |