<div dir="ltr">On Tue, May 14, 2013 at 9:46 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com" target="_blank">spitzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
John Kåre Alsaker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I expect a compositor to render deviations of the desired scaling<br>
factor without scaling windows. The range when this is allowed is<br>
reported to clients so they can try to render at a size which will<br>
avoid scaling.<br>
<br>
For example a compositor may want to use a 1-1.2 range with 1.1 as<br>
the desired scaling factor. A clients which are only able to draw at<br>
integer scaling factor would round that up to 2 and let the<br>
compositor downscale it. When the range for which compositor won't<br>
scale is send to clients we can avoid this.<br>
</blockquote>
<br></div>
I don't think a range is necessary. The client can just claim that it's window is scaled at 1.1 even though it drew it at 1. Or at 2.2 even though it drew it at 2. Nothing stops the client from doing this so you might as well make that the way integer scales are done.<br>
</blockquote><div>Then the user drags the window that claims to be draw at 1.1 over to a monitor with scaling factor 1. It will be downscaled even though it's a perfect match for the monitor.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
With the range, what happens to a surface with a scale of 1.3? Is it scaled by 1.3? Or should it be 1.3/1.2 times larger than the one scaled at 1.2, which is actually 1.191666? For this reason I think any scale wanted by the client should be obeyed literally.</blockquote>
<div>It will be scaled by client_scaling_factor/output_scaling_factor, which is 1.3/1.1.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We may also allow scaling factors below 1.<br>
</blockquote>
<br></div>
I think scaling factors less than 1 are going to be a requirement. Otherwise the "units" have to be for the lowest-resolution device, which seems silly if you have a huge hi-res screen and a small lcd low-res display on your keyboard.<br>
</blockquote><div>Perhaps, but I'd expect clients to do a lot of rounded up making the scaling not very linear.</div><br></div>