summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vignetting.cpp6
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?) */