Wed, 25 May 2022 20:36:34 +0300
Fix pick() picking from weird places on the screen with high DPI scaling
glReadPixels reads data from the frame buffer, which contains data after
high DPI scaling, so any reads to that need to take this scaling into account
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="512" height="512" viewBox="0 0 512 512" version="1.1" id="svg1829" sodipodi:docname="axes.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> <metadata id="metadata1835"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> <dc:title>ionicons-v5-h</dc:title> </cc:Work> </rdf:RDF> </metadata> <defs id="defs1833" /> <sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="962" id="namedview1831" showgrid="false" inkscape:zoom="0.54690291" inkscape:cx="-55.320982" inkscape:cy="219.81973" inkscape:window-x="0" inkscape:window-y="29" inkscape:window-maximized="1" inkscape:current-layer="svg1829" inkscape:document-rotation="0" showguides="false" /> <title id="title1821">ionicons-v5-h</title> <path style="fill:none;stroke:#008800;stroke-width:32;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none;fill-opacity:1" d="M 256.78345,49.171093 256,463.98999" id="path834" /> <path style="fill:none;stroke:#aa0000;stroke-width:32;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none;fill-opacity:1" d="M 69,153.99 443.78343,359.17109" id="path836" /> <path style="fill:none;stroke:#0000aa;stroke-width:32;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none;fill-opacity:1" d="M 443,153.99 69.783435,359.17109" id="path838" /> </svg>