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"?> <ui version="4.0"> <class>Vec3Editor</class> <widget class="QWidget" name="Vec3Editor"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>613</width> <height>46</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,1,1,0"> <item> <widget class="DoubleSpinBox" name="x"> <property name="prefix"> <string>x = </string> </property> <property name="decimals"> <number>4</number> </property> <property name="minimum"> <double>-1000000.000000000000000</double> </property> <property name="maximum"> <double>1000000.000000000000000</double> </property> </widget> </item> <item> <widget class="DoubleSpinBox" name="y"> <property name="prefix"> <string>y = </string> </property> <property name="decimals"> <number>4</number> </property> <property name="minimum"> <double>-1000000.000000000000000</double> </property> <property name="maximum"> <double>1000000.000000000000000</double> </property> </widget> </item> <item> <widget class="DoubleSpinBox" name="z"> <property name="prefix"> <string>z = </string> </property> <property name="decimals"> <number>4</number> </property> <property name="minimum"> <double>-1000000.000000000000000</double> </property> <property name="maximum"> <double>1000000.000000000000000</double> </property> </widget> </item> <item> <widget class="QPushButton" name="multiply"> <property name="text"> <string>×</string> </property> </widget> </item> </layout> </widget> <customwidgets> <customwidget> <class>DoubleSpinBox</class> <extends>QDoubleSpinBox</extends> <header>widgets/doublespinbox.h</header> </customwidget> </customwidgets> <resources/> <connections/> </ui>