diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-25 07:25:26 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-25 07:56:09 +0300 |
commit | 059d9631924366ba66b0cacf50cb5dad95889fe2 (patch) | |
tree | 84ca3db1eb41156cda7002aebaf9ecb3e9dd7151 /intern/ghost/intern/GHOST_WindowWayland.h | |
parent | dd08b490afc9224d700eb08c39a4a1a5aa2317a9 (diff) |
GHOST/Wayland: store fractional scaling in each window instead of DPI
This makes it possible to access the fractional scaling for a window,
there is no need to store the DPI which can be returned by getDPIHint().
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.h')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.h b/intern/ghost/intern/GHOST_WindowWayland.h index e95f5386310..ec473c4a710 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.h +++ b/intern/ghost/intern/GHOST_WindowWayland.h @@ -12,6 +12,8 @@ #include <vector> +#include <wayland-util.h> /* For #wl_fixed_t */ + class GHOST_SystemWayland; struct GWL_Output; @@ -95,8 +97,8 @@ class GHOST_WindowWayland : public GHOST_Window { /* WAYLAND direct-data access. */ - uint16_t dpi() const; int scale() const; + wl_fixed_t scale_fractional() const; struct wl_surface *wl_surface() const; const std::vector<GWL_Output *> &outputs(); |