D4951: Take into account scaling in blitFromFrameBuffer

David Edmundson noreply at phabricator.kde.org
Mon Mar 6 00:36:01 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: KWin.
Restricted Application added subscribers: KWin, kwin, plasma-devel.

REVISION SUMMARY
  This method already translates to s_virtualScreenGeometry as the source
  co-ordinates are in compostior space we should take scaling into account here too.
  
  This method already supports resizing if source and target sizes do not match.
  Calling funcitons can either double the size of the target if they want native resolution
  or leave as-is if they want the result in standard DPI.
  
  This implements scaling in the screenshot, magnifier and simple blur effect.

TEST PLAN
  Tested screenshot effect using spectacle.
  I hit an (unrelated, was reproducible on master) crash whilst using this, so it is not fully tested
  
  Ran magnifier effect manually

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D4951

AFFECTED FILES
  libkwineffects/kwinglutils.cpp

To: davidedmundson, #plasma
Cc: plasma-devel, kwin, #kwin, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170306/c5314f3e/attachment.html>


More information about the Plasma-devel mailing list