diff options
author | Rodrigo Tobar <rtobar@icrar.org> | 2022-11-26 12:53:32 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-26 08:56:35 +0100 |
commit | d04613d25231ce92ca6783c5b6cd1320ab324bee (patch) | |
tree | 40d545ac88e6ccb73665203953828e1c2c1d8f0f /Userland/Libraries/LibDeviceTree/Validation.cpp | |
parent | 21f500937baeff39704ae2d824255fb2377e1357 (diff) | |
download | serenity-d04613d25231ce92ca6783c5b6cd1320ab324bee.zip |
LibPDF: Fix path coordinates calculation
Paths rendering was buggy because the map() function that translates
points from user space to bitmap space applied the vertical flip
conversion that the current transformation matrix already considers;
Hence, all paths were upside down. The only exception was the "re"
instruction, which manually adjusted the Y coordinate of its points to
be flipped again (and had a FIXME saying that this should be
unnecessary).
This commit fixes the map() function that maps userspace points to
bitmap coordinates. The "re" operator implementation has also been
simplified creating a rectangle first and mapping *that* instead of
mapping each point individually.
Diffstat (limited to 'Userland/Libraries/LibDeviceTree/Validation.cpp')
0 files changed, 0 insertions, 0 deletions