diff options
author | marex <marex@beryl-project.org> | 2007-04-04 14:55:11 +0200 |
---|---|---|
committer | marex <marex@beryl-project.org> | 2007-04-04 14:55:11 +0200 |
commit | 81fcdfb8d990edf475537e6d024f540d2fda03da (patch) | |
tree | f23f8841b4293f4732f19e198a798693898f40c6 | |
parent | da3163c9d6ec072841b7473890cbc50c10b3df33 (diff) | |
download | beryl-premerge-81fcdfb8d990edf475537e6d024f540d2fda03da.tar.gz beryl-premerge-81fcdfb8d990edf475537e6d024f540d2fda03da.tar.bz2 |
wall: Fixed problem with switcher drawing on 3x3
-rw-r--r-- | src/wall.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1310,8 +1310,8 @@ static void wallDrawCairoTextureOnScreen(CompScreen *s, int output, Region regio float width = (float) ws->switcherContext->width; float height = (float) ws->switcherContext->height; - float topleftx = centerx-width/2.0f; - float toplefty = centery-height/2.0f; + float topleftx = centerx-floor(width/2.0f); + float toplefty = centery-floor(height/2.0f); float border = 10.0f; @@ -1786,9 +1786,9 @@ static void wallPreparePaintScreen(CompScreen * s, int ms) wallGetDistanceForAnimation(s, left, s->currentOutputDev, &dx, &dy); - moveWindow (w, ws->moveWindowX-w->attrib.x ,ws->moveWindowY-w->attrib.y, TRUE, TRUE); - moveWindowToViewportPosition(w,ws->moveWindowX-s->width*dx,FALSE); - moveWindowToViewportYPosition(w,ws->moveWindowY-s->height*dy,FALSE); + moveWindow (w, ws->moveWindowX - w->attrib.x, ws->moveWindowY - w->attrib.y, TRUE, TRUE); + moveWindowToViewportPosition(w, ws->moveWindowX - s->width*dx, FALSE); + moveWindowToViewportYPosition(w, ws->moveWindowY - s->height*dy, FALSE); syncWindowPosition(w); } } |