<div dir="ltr">I implemented a transformation matrix to pinch the top of my screen 100px on each side. My hope is for the resulting image to be an isosceles trapezoid (trapezium) with the smaller base on top, larger base on bottom filling the width of the screen, and with no part of the image missing or drawn off the screen. <div>

<br></div><div>After transforming, the top remains fixed at the width of the screen, and the bottom of the trapezoidal image is drawn off the screen on either side. I could be confused about what the transform should be doing, but otherwise I think this is a bug. <div>


<br></div><div>Have I setup my transformation incorrectly? Should I file a bug report?</div><div><br></div><div><br></div><div>Details</div><div>=======</div><div><br></div><div>$ xrandr -v</div><div><div>xrandr program version       1.3.5</div>

<div>Server reports RandR version 1.3</div></div><div><div>$ lsb_release -idrc</div><div>Distributor ID:<span class="" style="white-space:pre">     </span>Debian</div><div>Description:<span class="" style="white-space:pre"> </span>Debian GNU/Linux 7.1 (wheezy)</div>

<div>Release:<span class="" style="white-space:pre">    </span>7.1</div><div>Codename:<span class="" style="white-space:pre">       </span>wheezy</div></div><div><br></div><div>I'm working with 1440x900 resolution. I mapped the four corners to my desired output coordinates:<br>

</div>
<div><br></div><div>(0,0) => (0,0)</div><div>(1440,0) => (1440,0)</div><div>(0,900) => (100,900)</div><div>(1440,900) => (1340,900)</div><div><br></div><div>My transformation matrix is:</div><div>1, 0.30769, 0</div>


<div>0, 1.38462, 0</div><div>0, 0.00043, 1<br></div><div><br></div><div>My xrandr command:</div><div>xrandr --output LVDS1 --mode 1440x900  --transform 1,0.30769,0,0,1.38462,0,0,0.00043,1</div><div><br></div><div>Before transform: <br>


</div><div>  Man page: <a href="http://imgur.com/a/ZfWNd#0">http://imgur.com/a/ZfWNd#0</a></div><div>  Xorg Mailing List: <a href="http://imgur.com/a/ZfWNd#3">http://imgur.com/a/ZfWNd#3</a></div><div>After transform: </div>

<div><div>  Man page: <a href="http://imgur.com/a/ZfWNd#1">http://imgur.com/a/ZfWNd#1</a></div><div>  Xorg Mailing List: <a href="http://imgur.com/a/ZfWNd#2">http://imgur.com/a/ZfWNd#2</a></div></div><div><br></div><div>
When I multiply the homogeneous coordinates myself, I get back the points I intended. Xrandr seems to be scaling the image so the top's width matches the screen width (instead of being 200px shy, as the transform matrix indicates), letting the rest get drawn off screen.</div>


<div><br></div><div>Also, the xrandr man page has a keystone correction incantation at the very bottom, and while it does give the trapezoidal shape I want (via --fb 1440x900), it lops off the right side of the screen. See here: <a href="http://imgur.com/fC50und">http://imgur.com/fC50und</a>. Note the right side of the text is missing.</div>

<div><br></div><div>(sorry for the poor image quality).</div></div></div>