diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-03-14 23:54:58 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-03-14 23:54:58 +0800 |
commit | 3d4c3d7e9d97e01c20f2de5b407d461ff97c2114 (patch) | |
tree | 69942aa07610f7091085d34f4c109fbebdca5060 | |
parent | 4f0e6949386529b26df81ef5f880f7299d85bda7 (diff) | |
download | vignetting-3d4c3d7e9d97e01c20f2de5b407d461ff97c2114.tar.gz vignetting-3d4c3d7e9d97e01c20f2de5b407d461ff97c2114.tar.bz2 |
Update for new core API
-rw-r--r-- | src/vignetting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vignetting.cpp b/src/vignetting.cpp index e1381a8..5350598 100644 --- a/src/vignetting.cpp +++ b/src/vignetting.cpp @@ -120,7 +120,7 @@ VigWindow::glDraw (const GLMatrix &transform, /* We want to set the geometry of the vignette to the window * region */ - CompRegion reg = CompRegion (window->inputRect ()); + CompRegion reg = CompRegion (window->borderRect ()); /* Draw the window on the bottom, we will be drawing the * vignette render on top */ @@ -139,8 +139,8 @@ VigWindow::glDraw (const GLMatrix &transform, /* Scale the vignette render by the ratio of vignette size * to window size */ - mat.xx *= (vs->optionGetQuality () * 50.0f) / window->inputRect ().width (); - mat.yy *= (vs->optionGetQuality () * 50.0f) / window->inputRect ().height (); + mat.xx *= (vs->optionGetQuality () * 50.0f) / window->borderRect ().width (); + mat.yy *= (vs->optionGetQuality () * 50.0f) / window->borderRect ().height (); /* Not sure what this does, but it is necessary * (adjusts for scale?) */ |