aboutsummaryrefslogtreecommitdiffstats
path: root/clients
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-01-21 22:17:03 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-01-21 22:17:03 -0500
commita495333d4fe36b3f983fc90bf9a0f9d53363b211 (patch)
tree5adafe90549340ca6720b4c09bc80c6487c0a80d /clients
parentUpdate TODO again (diff)
downloadwayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar.gz
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar.bz2
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar.lz
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar.xz
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.tar.zst
wayland-a495333d4fe36b3f983fc90bf9a0f9d53363b211.zip
Remove unused bits of cairo code
Diffstat (limited to 'clients')
-rw-r--r--clients/window.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/clients/window.c b/clients/window.c
index a42ade0..017c324 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -684,7 +684,6 @@ window_draw_decorations(struct window *window)
{
cairo_t *cr;
cairo_text_extents_t extents;
- cairo_pattern_t *outline, *bright, *dim;
cairo_surface_t *frame;
int width, height, shadow_dx = 3, shadow_dy = 3;
@@ -693,10 +692,6 @@ window_draw_decorations(struct window *window)
width = window->allocation.width;
height = window->allocation.height;
- outline = cairo_pattern_create_rgb(0.1, 0.1, 0.1);
- bright = cairo_pattern_create_rgb(0.8, 0.8, 0.8);
- dim = cairo_pattern_create_rgb(0.4, 0.4, 0.4);
-
cr = cairo_create(window->cairo_surface);
cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
@@ -721,9 +716,6 @@ window_draw_decorations(struct window *window)
cairo_set_font_size(cr, 14);
cairo_text_extents(cr, window->title, &extents);
cairo_move_to(cr, (width - extents.width) / 2, 32 - extents.y_bearing);
- cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
- cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
- cairo_set_line_width (cr, 4);
if (window->keyboard_device)
cairo_set_source_rgb(cr, 0, 0, 0);
else