summaryrefslogtreecommitdiffstats
path: root/source/scrollbar.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-09-19 20:59:50 +0200
committerQC <qball@gmpclient.org>2015-09-19 21:00:06 +0200
commit31fe5759b8bede7a31535c61977b9efe2438d789 (patch)
treef5f8222d560ed666f85e9ee5f98fa958b6c2f39d /source/scrollbar.c
parentb18d68eff26429ed08d560b187c46770eb7db0b2 (diff)
More line fixing.
Diffstat (limited to 'source/scrollbar.c')
-rw-r--r--source/scrollbar.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/source/scrollbar.c b/source/scrollbar.c
index b327fd39..be6e18bc 100644
--- a/source/scrollbar.c
+++ b/source/scrollbar.c
@@ -56,16 +56,12 @@ scrollbar *scrollbar_create ( Window parent, XVisualInfo *vinfo, Colormap map,
attr.colormap = map;
attr.border_pixel = color_border ( display );
attr.background_pixel = color_background ( display );
- sb->window =
- XCreateWindow ( display, sb->parent, sb->x, sb->y, sb->w, sb->h, 0, vinfo->depth,
- InputOutput, vinfo->visual, CWColormap |
- CWBorderPixel | CWBackPixel,
- &attr );
+ sb->window = XCreateWindow ( display, sb->parent, sb->x, sb->y, sb->w, sb->h, 0, vinfo->depth, InputOutput, vinfo->visual,
+ CWColormap | CWBorderPixel | CWBackPixel, &attr );
XSelectInput ( display, sb->window, ExposureMask | ButtonPressMask | Button1MotionMask );
sb->gc = XCreateGC ( display, sb->window, 0, 0 );
XSetForeground ( display, sb->gc, color_separator ( display ) );
- //XSetFillStyle ( display, sb->gc, FillSolid);
// Create GC.
return sb;
@@ -131,9 +127,7 @@ void scrollbar_draw ( scrollbar *sb )
// Redraw base window
XClearWindow ( display, sb->window );
// Paint the handle.
- XFillRectangle ( display, sb->window, sb->gc, config.line_margin, y, sb->w -
- config.line_margin,
- height );
+ XFillRectangle ( display, sb->window, sb->gc, config.line_margin, y, sb->w - config.line_margin, height );
}
}
void scrollbar_resize ( scrollbar *sb, int w, int h )