[Differential] [Request, 35 lines] D3502: Provide scale offset to WindowVertex calculation
    davidedmundson (David Edmundson) 
    noreply at phabricator.kde.org
       
    Fri Nov 25 10:25:50 UTC 2016
    
    
  
davidedmundson created this revision.
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.
REVISION 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
REPOSITORY
  rKWIN KWin
REVISION DETAIL
  https://phabricator.kde.org/D3502
AFFECTED FILES
  libkwineffects/kwineffects.h
  scene.cpp
  scene.h
EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/
To: davidedmundson, #plasma
Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161125/664e2250/attachment.html>
    
    
More information about the Plasma-devel
mailing list