Use window size for offscreen texture size in screenshot effect
author Martin Gräßlin
()
committer Martin Gräßlin
()
commit e15aaaef060ee823d143831766961fc3589cb65c
tree 6a6390018d2e573188640d074b4b8b1cf96d2e9f
parent 5a8bb2f46e5c19f121dab1a8a70dd04b56e7ab2e
Use window size for offscreen texture size in screenshot effect

Effect used the display size which caused windows being larger than
either width or height not to be captured correctly.

Now it uses the window size for the offscreen texture which also requires
to adjust the modelviewprojection matrix.

As an unrelated change the pointer to GLRenderTarget and GLTexture are
changed to a QScopedPointer and some variables which got moved around
are consted.

BUG: 312851
FIXED-IN: 4.11
REVIEW: 108258
kwin/effects/screenshot/screenshot.cpp
kwin/effects/screenshot/screenshot.h