Scaling support in ColorPicker effect
ClosedPublic

Authored by davidedmundson on Mar 6 2017, 12:32 AM.

Details

Summary

glReadPixels needs the correct location relative to the
framebuffer so we need to factor in the scale as well as translation
when going from compositor space.

Test Plan

Ran the plasma colour picker plasmoid in windowed mode
Clicked on multiple parts of a window
It was right every time

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Mar 6 2017, 12:32 AM
Restricted Application added a project: KWin. · View Herald TranscriptMar 6 2017, 12:32 AM
Restricted Application added subscribers: KWin, kwin, plasma-devel. · View Herald Transcript
graesslin accepted this revision.Mar 10 2017, 3:07 PM
This revision is now accepted and ready to land.Mar 10 2017, 3:07 PM
This revision was automatically updated to reflect the committed changes.