Diffusion KWin ebebc6ca82b1

Provide scale offset to WindowVertex calculation

Authored by davidedmundson on Nov 21 2016, 5:33 PM.

Description

Provide scale offset to WindowVertex calculation

Summary:
WindowVertex contains the x position and also the relative texture x position

Our textures are scaled bigger than kwin's resolution, so this makes sure we set the right
texture position.

Otherwise our final array ends up using 0 to 0.5 of the texture, not 0 to 1.

Test Plan:
Opened some 2x windows, on a 1x output.
It looked how it should do, instead of it being double the size and cropped

Tested some things that use quads, like wobbly windows

Reviewers: Plasma

Subscribers: plasma-devel, kwin

Tags: KWin

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

Details

Committed
davidedmundsonMar 29 2017, 7:53 PM
Differential Revision
D3502: Provide scale offset to WindowVertex calculation
Parents
R108:e2e2c86f3740: Scale surface damage events
Branches
Unknown
Tags
Unknown