diff options
author | QC <qball@gmpclient.org> | 2015-10-10 13:03:11 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-10-10 13:03:11 +0200 |
commit | b0ceccb93ea56161a33e2684912f4d220b31aee3 (patch) | |
tree | 0b205fac13e2da2f1740b68f6b4a69798a66be79 /source/scrollbar.c | |
parent | 01aa2e32cc354b2703e0237e749dc9eb2016b635 (diff) |
Use cairo for all drawing, also borders
Diffstat (limited to 'source/scrollbar.c')
-rw-r--r-- | source/scrollbar.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/scrollbar.c b/source/scrollbar.c index f7b1466f..21eb7077 100644 --- a/source/scrollbar.c +++ b/source/scrollbar.c @@ -97,14 +97,8 @@ void scrollbar_draw ( scrollbar *sb, cairo_t *draw ) // Cap length; height = MIN ( bh - y + 1, ( height ) ); // Redraw base window - unsigned pixel = color_separator ( display ); + color_separator ( display, draw ); - cairo_set_source_rgba ( draw, - ( ( pixel & 0x00FF0000 ) >> 16 ) / 256.0, - ( ( pixel & 0x0000FF00 ) >> 8 ) / 256.0, - ( ( pixel & 0x000000FF ) >> 0 ) / 256.0, - ( ( pixel & 0xFF000000 ) >> 24 ) / 256.0 - ); cairo_rectangle ( draw, sb->x + config.line_margin, sb->y + y, sb->w - config.line_margin, height ); cairo_fill ( draw ); } |