flags/sv.svg@6988973515d2
flags/sv.svg
Wed, 25 May 2022 20:36:34 +0300
- author
- Teemu Piippo <teemu@hecknology.net>
- date
- Wed, 25 May 2022 20:36:34 +0300
- changeset 199
- 6988973515d2
- parent 6
-
73e448b2943d
- permissions
- -rw-r--r--
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"?><svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 16 10">
<rect width="16" height="10" fill="#006aa7"/>
<rect width="2" height="10" x="5" fill="#fecc00"/>
<rect width="16" height="2" y="4" fill="#fecc00"/>
</svg>