]> git.ipfire.org Git - thirdparty/plymouth.git/commit
label-freetype: Fix rowstride bug with hidpi displays
authorRay Strode <rstrode@redhat.com>
Wed, 3 Jan 2024 21:24:50 +0000 (16:24 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 4 Jan 2024 20:28:02 +0000 (15:28 -0500)
commit1c2c9e622dee59f76540bfb4af460f06cff3ef2d
tree0dfcdc8d7e75f30975b27020b88d814c59b5c6ae
parent2dba038dd7a26691c80a67a13bf95f7fd04ef2f6
label-freetype: Fix rowstride bug with hidpi displays

The freetype plugin correctly doubles the DPI on hidpi displays,
but fails to account for the doubled pixels in display's pixel buffer.

This commit adds a factor of 2 to the size and positioncomputations,
to hopefully fix a row stride and a positioning bug.
src/plugins/controls/label-freetype/plugin.c