<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Dave,</p>
<p><br>
</p>
<p>many thanks for the pointer! The #extent: implementation in my image actually does not call #rounded - this is because I have installed
<a href="https://github.com/hpi-swa/widgets" class="x_OWAAutoLink">Widgets</a> which contains an extension method based on an older implementation of #extent: ... Will report or fix the bug there. Thanks.<span></span></p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="x_Signature">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von David T. Lewis <lewis@mail.msen.com><br>
<b>Gesendet:</b> Mittwoch, 23. Oktober 2019 03:20:43<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Fractional bounds and flickering (contains images that may be disturbing to some readers)</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I cannot reproduce in my image either. The fractional bounds are<br>
rounded to integer values in Rectangle>>rounded, which is called<br>
from Morph>>extent.<br>
<br>
Dave<br>
<br>
On Tue, Oct 22, 2019 at 01:09:23PM +0000, Thiede, Christoph wrote:<br>
> Hi Nicolas,<br>
> <br>
> <br>
> thanks for the insight. On my system, it is not rounded ... I have the latest trunk updates installed.<br>
> <br>
> ________________________________<br>
> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com><br>
> Gesendet: Dienstag, 22. Oktober 2019 15:00:27<br>
> An: The general-purpose Squeak developers list<br>
> Betreff: Re: [squeak-dev] Fractional bounds and flickering (contains images that may be disturbing to some readers)<br>
> <br>
> Hi Christoph,<br>
> I cannot reproduce. It seems like bounds soon get rounded in my image:<br>
> <br>
>     (SystemWindow new openInWorld extent: (24214/31)@(11565/31)) bounds extent.<br>
>         781@373<br>
> <br>
> Le mar. 22 oct. 2019 ? 13:40, Thiede, Christoph <Christoph.Thiede@student.hpi.uni-potsdam.de<mailto:Christoph.Thiede@student.hpi.uni-potsdam.de>> a ?crit :<br>
> <br>
> Hi all,<br>
> <br>
> <br>
> In the latest days, I encountered flickering problems caused by non-integer bounds of system windows again. For me, the following fails reproducibly in different images:<br>
> <br>
> <br>
> SystemWindow new openInWorld extent: (24214/31)@(11565/31).<br>
> <br>
> <br>
> If I hover and unhover the window a few times, its contents are drawn badly and incompletely like this:<br>
> <br>
> <br>
> [cid:16df38cc226f456b1e51]<br>
> <br>
> <br>
>   *   As you can see, the issue also affects other morphs in the same region (in the screenshot I am hovering the implementors button of the background browser).<br>
>   *   The issue only occurs with very complex fractions, so the extent 500 @ 300 / 2 would not be a problem (at least in my image). I could not reproduce it using floats.<br>
>   *   The situation can be also reproduced by composing a few morphs manually, but the more submorphs there, the higher the flickering rate appears to be.<br>
>   *   [World imageForm] does not contain any abnormalities, maybe the problem is related to the damage recording?<br>
> <br>
> I would like to solve this bug, but I'm not sure where the problem actually arises. In general, should morphs be allowed to have non-integer bounds? This could be useful e. g. for exact animations, but we already have some rounding that (unfortunately) rule
 out this use case:<br>
> <br>
>   *   #position: appears to round the delta value for movement<br>
>   *   #extent: and #bounds: do no rounding at all.<br>
> <br>
> Should we maybe apply some rounding or at least truncating there? Or just convert the arguments using #asFloat before?<br>
> Or do you have any idea how one could debug the problem?<br>
> <br>
> (For relevancy: I often call Preferences >> #changeFontSize:, and each time all windows are drawn badly until I round their bounds. This can indeed be quite annoying:<br>
> [cid:16df38cc227f456b1e52])<br>
> <br>
> Looking forward to your help!<br>
> Best,<br>
> Christoph<br>
> <br>
<br>
<br>
<br>
<br>
> <br>
<br>
<br>
</div>
</span></font>
</body>
</html>