summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDeviceTree/Validation.cpp
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobar@icrar.org>2022-11-26 12:53:32 +0800
committerAndreas Kling <kling@serenityos.org>2022-11-26 08:56:35 +0100
commitd04613d25231ce92ca6783c5b6cd1320ab324bee (patch)
tree40d545ac88e6ccb73665203953828e1c2c1d8f0f /Userland/Libraries/LibDeviceTree/Validation.cpp
parent21f500937baeff39704ae2d824255fb2377e1357 (diff)
downloadserenity-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