diff options
author | Wouter <waterflames> | 2017-03-11 05:27:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-03-25 13:22:16 +0300 |
commit | fe3fb236970ce30733381ad1ae8b89c55266c517 (patch) | |
tree | b5f7e3c34d2f6ce36ae3d387755e64cdf6a911e5 /intern/ghost/GHOST_IWindow.h | |
parent | 86730f1f352968e97519fda4250ee7683f1753f5 (diff) |
Automatic DPI for all platforms, per monitor DPI for Windows.
For Windows 8.1 and X11 (Linux, BSD) now use the DPI specified by the operating
system, which previously only worked on macOS. For Windows this is handled per
monitor, for X11 this is based on Xft.dpi or xrandr --dpi. This should result
in appropriate font and button sizes by default in most cases.
The UI has been simplified to a single UI Scale factor relative to the automatic
DPI, instead of two DPI and Virtual Pixel Size settings. There is forward and
backwards compatibility for existing user preferences.
Reviewed By: brecht, LazyDodo
Differential Revision: https://developer.blender.org/D2539
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r-- | intern/ghost/GHOST_IWindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 688ebecf557..4a4d6be5ced 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -332,6 +332,12 @@ public: virtual float getNativePixelSize(void) = 0; + /** + * Returns the recommended DPI for this window. + * \return The recommended DPI for this window. + */ + virtual GHOST_TUns16 getDPIHint() = 0; + #ifdef WITH_INPUT_IME /** * Enable IME attached to the given window, i.e. allows user-input |