Re: Decreasing seams in scaled windows

John Ehresman <[email protected]> Mon, 22 Jun 2026 12:18:45 +0100
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
Neil,

Wayland has a similar dirty region bug and I have a local patch to fix it. =
It=E2=80=99s a Qt bug =E2=80=94 I see more debris lines in the list widget =
and menus more than I do in scintilla. But the snap workaround doesn=E2=80=
=99t seem to fix it and I=E2=80=99m trying to figure out why.

I see the debris on Wayland when the display magnification is 200% and I ad=
d a Qt scale factor of 1.5 (or other) on top of that, but I was unable to s=
ee debris with a display magnification of 100%. What display magnification =
are you using?

Thanks,

John

> On Jun 21, 2026, at 12:21=E2=80=AFAM, Neil Hodgson <scintilladotorg@gmail=
.com> wrote:
>=20
> John:
>=20
>> Here=E2=80=99s a version that always snaps.
>=20
> That worked for me on macOS.
>=20
>> The backing store has a grid of what is dirty and that grid is only half=
 the size of the backing store on retina displays. Making it full size seem=
s to fix the one pixel lines.
>=20
> The Wayland/Linux lines may be a similar bug. Using the snap code
> (with changes to ensure it runs) fixes some cases but not others. It
> appears to fix 125% and 133% but not 150%. For 150% the problem moves
> a little - likely a single pixel.
> https://www.scintilla.org/QtScaleSnap150Wayland.png
>=20
> To get this for 150% (with Ubuntu 26.04 LTS Wayland Qt 6.10.2 inside
> VirtualBox):
> * Disable the `if defined(Q_OS_APPLE)` checks
> * Remove the `if (backing =3D=3D 1)` checks since there is no 'retina'
> pixel-doubling
> * Remove the early return for scales other than 1.0 and 2.0 in
> InvalidateRectangle
>=20
> This produces the expected 'q' of 2 (150%), 3 (133%), and 4 (125%) and
> the corresponding snapped rectangle value.
>=20
> Neil
>=20
> --=20
> 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/CACWkrTiX45E9qpTcUezPOyDHwDOi8oCbCirY0JnAAFwSkY5faA%40mail.gmail.=
com.
> <EnableSnap.patch>

--=20
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 e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-i=
nterest/0E38126E-CBED-4D33-B662-07516DC58C6C%40wingware.com.