[Cuis-dev] Some small issues
Juan Vuletich
juan at cuis.st
Thu Jan 12 06:27:24 PST 2023
On 1/11/2023 10:32 AM, Hilaire Fernandes via Cuis-dev wrote:
> Le 11/01/2023 à 13:04, Barry Perryman via Cuis-dev a écrit :
>> The first one is the when I set the size of the GUI elements to
>> something other than default I can see a gap on the left and the
>> right hand sides between the top of the window and the title bar,
>> I've attached a small screen shot so you can see what I'm talking
>> about. If I reset this back to default the missing piece is still
>> missing.
>
>
> All windows are kind of SystemWindow. When browsing this class, you
> see the method drawRoundedFrameOn:color: There is somewhere a rounding
> problem, a temporary fix is to add the rounded message as below:
>
> SystemWindow>>drawRoundedFrameOn: aCanvas color: widgetsColor
> aCanvas
> drawRoundedFrame: self morphLocalBounds
> border: borderWidth
> color: widgetsColor
> insideColor: color
> labelHeight: self labelHeight *rounded*.
>
>
> Juan, I suspect you have different way of rounding or not in the
> BltCanvas and HybridCanvas engines.
>
> When I added the message "self labelHeight print" in the drawing
> method above, it outputs 26.548555, you see... Could it be you are
> truncating in the HybridCanvas drawing methods and rounding in the
> BltCanvas ones? Those explaining the 1 pixel gap.
>
> Thanks
>
> Hilaire
>
> --
> GNU Dr. Geo
> http://drgeo.eu
> http://blog.drgeo.eu
Hi Folks,
The artifact was actually also there for BitBltCanvas. Just fixed it.
Fix is at GitHub.
Thanks for reporting!
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230112/92afb5b2/attachment.htm>
More information about the Cuis-dev
mailing list