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>ObjectEditor</class> <widget class="QWidget" name="ObjectEditor"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>664</width> <height>468</height> </rect> </property> <property name="windowTitle"> <string>Form</string> </property> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="typeIconLabel"> <property name="text"> <string><icon></string> </property> </widget> </item> <item> <widget class="QLabel" name="typeNameLabel"> <property name="styleSheet"> <string notr="true">font-weight: bold</string> </property> <property name="text"> <string>Object</string> </property> </widget> </item> </layout> </item> <item> <widget class="QGroupBox" name="properties"> <property name="title"> <string>Properties</string> </property> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>40</height> </size> </property> </spacer> </item> </layout> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>508</width> <height>20</height> </size> </property> </spacer> </item> </layout> </widget> <resources/> <connections/> </ui>