From d444cc8d598f205c80e86951786d0030a6c82a00 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 3 Nov 2008 15:52:32 +0100 Subject: [PATCH] mouse: drop alpha channel in infobox Signed-off-by: Julien Danjou --- mouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index c77396c3..5ccc5fe7 100644 --- a/mouse.c +++ b/mouse.c @@ -252,10 +252,12 @@ mouse_infobox_draw(simple_window_t *sw, area_t geometry, int border) area_t draw_geometry = { 0, 0, sw->ctx.width, sw->ctx.height }; char size[64]; size_t len; + xcolor_t color_without_alpha = globalconf.colors.bg; + color_without_alpha.alpha = 0xffff; len = snprintf(size, sizeof(size), "%dx%d+%d+%d", geometry.width, geometry.height, geometry.x, geometry.y); - draw_rectangle(&sw->ctx, draw_geometry, 1.0, true, &globalconf.colors.bg); + draw_rectangle(&sw->ctx, draw_geometry, 1.0, true, &color_without_alpha); draw_text(&sw->ctx, globalconf.font, draw_geometry, size, len, NULL); simplewindow_move(sw, geometry.x + ((2 * border + geometry.width) - sw->geometry.width) / 2,