82dc3f25a766e9aefbb113b4424e51836275450b
This commit fixes a bug where the timeline area height was clamped to its minimum value when restoring an area layout saved on a non-HiDPI screen on a HiDPI screen. In particular, this caused the default Blender startup file timeline area to be wrongly clamped dwon on macOS when using a HiDPI/Retina screen. This was due to the `screen_geom_vertices_scale_pass` function using raw `area->winy` value in the `facy > 1` case, which ensures the timeline does not get expanded when resizing the window if its already at its minimum height. When restoring the area layout, these `winy` values were not yet refreshed, and still used the DPI scale of the screen the layout was saved on. Which in case of macOS HiDPI screens caused them to be two times smaller then the screen / other size values used in the function. This was fixed by using the `screen_geom_area_height()` instead, which computes the area height from its screen geometry coordinates, and was previously used in this function before being replaced by `winy`. The comparaison now also uses a fixed value instead of `facy` which was also subject to DPI differencies, see PR thread for more details Pull Request: https://projects.blender.org/blender/blender/pulls/141154
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
