Diffusion KWin 24c9194f4c95

Scaling support in ColorPicker effect

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

Description

Scaling support in ColorPicker effect

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

Reviewers: Plasma

Subscribers: plasma-devel, kwin, KWin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D4950

Details

Committed
davidedmundsonApr 28 2017, 9:23 AM
Differential Revision
D4950: Scaling support in ColorPicker effect
Parents
R108:f445a99a746b: Support scaling in BackgroundContrast effect
Branches
Unknown
Tags
Unknown