Jump to content

paint.net 4.3: Footnote of IndirectUI control in FileType shows artifacts after scrolling


midora

Recommended Posts

Yeah there's something weird with the rendering that I'm currently trying to nail down

 

These are the PdnLabel control, and Settings also uses it but doesn't have this garbly result, so I don't know what the difference is just yet

 

image.png

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Okay I have a fix for this.

 

I think this is actually a rendering bug in DirectWrite. My fix is to first render into a bitmap and then draw the bitmap w/ clipping, as opposed to drawing the text w/ clipping.

 

This was affecting links, too. (PdnLinkLabel)

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

I remember that I have seen the issue in PdnLinkLabel too but forgot to report it.

 

Maybe the issue is related to the padding of the strings at the beginning or end (i.e. via StringFormat).

Edited by midora

midoras signature.gif

Link to comment
Share on other sites

I did fix up some layout code regarding padding, but the old code was just accidentally doing the right thing but in a dumb way. So, I really don't know. Setting Padding to 0 didn't fix things.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...