Re: Decreasing seams in scaled windows
Neil <[email protected]> Fri, 6 Mar 2026 16:17:37 -0800 (PST)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_58220_1409226362.1772842657109 Content-Type: multipart/alternative; boundary="----=_Part_58221_644308024.1772842657109" ------=_Part_58221_644308024.1772842657109 Content-Type: text/plain; charset="UTF-8" John: One way to draw to raw pixels is to render to a full size pixmap, set the device pixel ratio to match the widget, then render the pixmap to the widget. It also may be possible to set the scale on a painter to 1 / device-pixel-ratio and then draw. These will be better approaches. The earlier patch on this thread is improved a bit in case it is needed for other platforms. https://www.scintilla.org/Larger3.patch This applies to the current repository state since a recent commit reduced draw calls for visible whitespace background by using a single call for a sequence of spaces instead on one call per space. Its faster and removes seams between spaces. https://sourceforge.net/p/scintilla/code/ci/b371d4b36bf9751921a0ff4cf2ec3939522567ff/ The Larger3.patch change moves the controlling variable to ViewState where it can be set differently for screen and printer. The decision is now made in the platform layer inside ScintillaQt.cpp. Seam overdraw is turned off for integer scaling 1x and 2x and also, to allow experimentation, for 1.5x. 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/6a55fd5b-5dff-4931-9400-10d27ab9380an%40googlegroups.com. ------=_Part_58221_644308024.1772842657109 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable John:<br /><br /><div><blockquote style=3D"margin: 0px 0px 0px 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">One way to draw t= o raw pixels is to render to a full size pixmap, set the device pixel ratio= to match the widget, then render the pixmap to the widget. <br /> <br />It also may be possible to set the scale on a painter to 1 / device-p= ixel-ratio and then draw.</blockquote><div><br /></div><div>These will be b= etter approaches.</div><div><br /></div><div>The earlier patch on this thre= ad is improved a bit in case it is needed for other platforms.</div><div>ht= tps://www.scintilla.org/Larger3.patch</div><div><br /></div><div>This appli= es to the current repository state since a recent commit reduced draw calls= for visible whitespace background by using a single call for a sequence of= spaces instead on one call per space. Its faster and removes seams between= spaces.</div><div>https://sourceforge.net/p/scintilla/code/ci/b371d4b36bf9= 751921a0ff4cf2ec3939522567ff/</div><div><br /></div><div>The=C2=A0Larger3.p= atch=C2=A0change=C2=A0moves the controlling variable to ViewState where it = can be set differently for screen and printer. The decision is now made in = the platform layer inside=C2=A0ScintillaQt.cpp. Seam overdraw is turned off= for integer scaling 1x and 2x and also, to allow experimentation, for 1.5x= .</div><div><br /></div><div>Neil</div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;scintilla-interest" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= scintilla-interest/6a55fd5b-5dff-4931-9400-10d27ab9380an%40googlegroups.com= ?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/= scintilla-interest/6a55fd5b-5dff-4931-9400-10d27ab9380an%40googlegroups.com= </a>.<br /> ------=_Part_58221_644308024.1772842657109-- ------=_Part_58220_1409226362.1772842657109--