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="svg5169" sodipodi:docname="linetype-conditionalline.svg" inkscape:version="1.0.2 (e86c870879, 2021-01-15)"> <metadata id="metadata5175"> <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-d</dc:title> </cc:Work> </rdf:RDF> </metadata> <defs id="defs5173" /> <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="970" id="namedview5171" showgrid="false" inkscape:zoom="0.19335938" inkscape:cx="10.850565" inkscape:cy="165.06869" inkscape:window-x="0" inkscape:window-y="29" inkscape:window-maximized="1" inkscape:current-layer="text5779" /> <title id="title5155">ionicons-v5-d</title> <path style="fill:#aa44ff;fill-opacity:1;stroke:#000000;stroke-width:16;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" d="m 128.49713,361.32331 237.11801,-251.87928 38.58103,42.71089 -235.69661,243.8765 z" id="path5739" sodipodi:nodetypes="ccccc" /> <circle cx="128" cy="416" style="fill:none;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:32px" id="circle5157" r="48" /> <circle cx="415.54843" cy="96" r="48" style="fill:none;stroke:#000000;stroke-width:32px;stroke-linecap:round;stroke-linejoin:round" id="circle5163" /> <g aria-label="?" id="text5779" style="font-style:normal;font-weight:normal;font-size:400px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:32;stroke-miterlimit:4;stroke-dasharray:none"> <path d="m 351.28137,444.69 h 39.64844 v 49.60938 h -39.64844 z m 38.47656,-28.71094 h -37.30468 v -30.07812 q 0,-19.72656 5.46875,-32.42188 5.46875,-12.69531 23.04687,-29.49218 L 398.547,306.60406 q 11.13281,-10.35156 16.01562,-19.53125 5.07813,-9.17968 5.07813,-18.75 0,-17.38281 -12.89063,-28.125 -12.69531,-10.74218 -33.78906,-10.74218 -15.42969,0 -33.00781,6.83593 -17.38282,6.83594 -36.32813,19.92188 v -36.71875 q 18.35938,-11.13281 37.10938,-16.60156 18.94531,-5.46875 39.0625,-5.46875 35.9375,0 57.61718,18.94531 21.875,18.94531 21.875,50 0,14.84375 -7.03125,28.32031 -7.03125,13.28125 -24.60937,30.07813 l -17.1875,16.79687 q -9.17969,9.17969 -13.08594,14.45313 -3.71094,5.07812 -5.27344,9.96093 -1.17187,4.10157 -1.75781,9.96094 -0.58594,5.85938 -0.58594,16.01563 z" id="path5781" style="fill:#000000;fill-opacity:1;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke:#ffffff;stroke-opacity:1;stroke-linecap:butt;stroke-linejoin:round" /> </g> </svg>