summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarex <marex@beryl-project.org>2007-04-02 21:25:15 +0200
committermarex <marex@beryl-project.org>2007-04-02 21:25:15 +0200
commit571a99aef45f62d68bb266090c766289bd9f26a9 (patch)
treef9ce2c4c157b85b3489778173cc50c198d4b024e
parentf6db3dfbe9c86480d4bc677050d2f990cb0101e3 (diff)
downloadberyl-premerge-571a99aef45f62d68bb266090c766289bd9f26a9.tar.gz
beryl-premerge-571a99aef45f62d68bb266090c766289bd9f26a9.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 91aa695..38e7439 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -314,9 +314,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
@@ -336,8 +336,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;
@@ -351,8 +351,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);