Re: Dark styles bounded by unexpected white lines
Neil <[email protected]> Fri, 10 Jan 2025 13:43:03 -0800 (PST)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
As mentioned on some of the issues, exposing Scintilla to the true pixel dimensions should allow this to be solved. There are likely Qt APIs to specify that the calling code is High-DPI aware and to retrieve scaling information. If that is not possible, an overdraw technique could be tried. That would draw at least an extra logical pixel (as seen by Scintilla) at the bottom of each line. This should ensure the bottom physical pixel is completely painted but may also tint the following pixel. Drawing the next line may mix (blur) with the boundary pixel and completely paints the next pixel. Since it is drawing with the current colours (not a single global colour) this should adapt to situations where there are segments of the document with different background colours. It would only work for SC_PHASES_MULTIPLE and unbuffered drawing as other modes clip drawing to the line in logical pixels. A scale below 100% may still cause problems as the next physical pixel may not be covered by a single logical pixel. Drawing pixels twice will be less efficient and this addition would also increase the complexity of the drawing code. Within each line, segment background drawing could also add an extra pixel to the right and that would work (just for the short vertical lines shown) even in SC_PHASES_TWO. Neil -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/bd785523-13d2-4356-8e36-7b21322c073dn%40googlegroups.com.