[Cuis-dev] Artifacts

Juan Vuletich juan at jvuletich.org
Wed Jun 3 08:12:10 PDT 2020


On 6/3/2020 11:59 AM, ken.dickey--- via Cuis-dev wrote:
> Ah.  Think I got it.  Rounding error.
>
> If I round the values returned from 
> LayoutMorph>>off{Vertical,Horizontal}MetricFor:withinExtent:
>
> The artifacts go away.
>
> Do you want to go ahead and make the changes?
>
> Thanks much!
> -KenD

Well, there is a problem with non integer coordinates, and rounding them 
would avoid the artifacts.

But the vector graphics engine can correctly draw to fractional 
coordinates, not rounding them, but drawing at subpixel resolution. So, 
I think it is best to only round in the BitBltCanvas and Engine. It is 
their problem if they can't handle fractional coordinates. The changeset 
I just posted does that. Please try it.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list