summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarex <marex@beryl-project.org>2007-04-02 21:18:34 +0200
committermarex <marex@beryl-project.org>2007-04-02 21:18:34 +0200
commit1f9b0564e96b361c2e9b26fcad044281593578e6 (patch)
tree877b28125703a28f87a557bb111986ef322d2311
parent4792c1eb025b3fa9780e2d63dd1d9c6f7cd1e5fc (diff)
downloadberyl-plugins-1f9b0564e96b361c2e9b26fcad044281593578e6.tar.gz
beryl-plugins-1f9b0564e96b361c2e9b26fcad044281593578e6.tar.bz2
wall: Fixed switcher drawing
-rw-r--r--src/wall.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wall.c b/src/wall.c
index acdf4da..9e96483 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -352,9 +352,9 @@ static void wallDrawSwitcherBackground(CompScreen *s)
// set the pattern for the switcher's background
pattern = cairo_pattern_create_linear(0, 0, width, height);
- cairo_pattern_add_color_stop_rgba(pattern, 0.0f, 0.80, 0.80, 0.90 ,0.85);
+ cairo_pattern_add_color_stop_rgba(pattern, 0.00f, 0.80, 0.80, 0.90, 0.85);
cairo_pattern_add_color_stop_rgba(pattern, 0.65f, 0.95, 0.95, 1.0f, 0.85);
- cairo_pattern_add_color_stop_rgba(pattern, 0.85f, 0.85, 0.85, 0.85 ,0.85);
+ cairo_pattern_add_color_stop_rgba(pattern, 0.85f, 0.85, 0.85, 0.85, 0.85);
cairo_set_source(cr, pattern);
// draw the border's shape
@@ -374,8 +374,8 @@ static void wallDrawSwitcherBackground(CompScreen *s)
cairo_pattern_destroy(pattern);
- float viewportWidth = floor((width - border*(s->hsize+1))/hsize);
- float viewportHeight = floor((height - border*(s->vsize+1))/vsize);
+ int viewportWidth = floor((width - border*(s->hsize+1))/hsize);
+ int viewportHeight = floor((height - border*(s->vsize+1))/vsize);
ws->viewportWidth = viewportWidth;
ws->viewportHeight = viewportHeight;
ws->viewportBorder = border;
@@ -389,8 +389,8 @@ static void wallDrawSwitcherBackground(CompScreen *s)
{
for (j = 0; j < vsize; j++)
{
- vpX = i*(viewportWidth+border);
- vpY = j*(viewportHeight+border);
+ vpX = i*(viewportWidth + border + outline/2.0f);
+ vpY = j*(viewportHeight + border + outline/2.0f);
// this cuts a hole into our background
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);