Blender Git Loki

Git Commits -> Revision 6fa46ad

Revision 6fa46ad by Lukas Toenne (master)
September 30, 2014, 16:29 (GMT)
Support for "virtual pixelsize" on 4k screens.

On 4k devices the default pixel size leads to tiny OpenGL drawing
that is hardly usable without doubling the DPI. The retina system
on OSX aims to alleviate this problem by introducing a general 2x
pixel size.

No equivalent feature exists on other platforms so far. However,
to emulate the effect this patch introduces a "virtual" pixel size
factor for OpenGL drawing.

Note that the user currently has to enable this manually by selecting
the "Virtual Pixel Mode" in the user preferences (defaults to native).
All windows of a Blender instance share the same virtual pixel size as well.
It may be possible to handle this on a per-window basis and automate
the selection somewhat (if enabled by the user), so working with
multiple screens becomes more convenient, but technical limitations
make this a bit difficult (on X11 with nvidia drivers the actual screen size
is not reported correctly).

Reviewers: ton, campbellbarton

Differential Revision: https://developer.blender.org/D669

Commit Details:

Full Hash: 6fa46ad315ceb46dbf47d6c6ffdda032d0e885ed
Parent Commit: c7684b4
Lines Changed: +52, -3

5 Modified Paths:

/release/scripts/startup/bl_ui/space_userpref.py (+5, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+22, -0) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+16, -3) (Diff)
/source/blender/windowmanager/wm_window.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021