Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-10-25 07:25:26 +0300
committerCampbell Barton <campbell@blender.org>2022-10-25 07:56:09 +0300
commit059d9631924366ba66b0cacf50cb5dad95889fe2 (patch)
tree84ca3db1eb41156cda7002aebaf9ecb3e9dd7151 /intern/ghost/intern/GHOST_WindowWayland.h
parentdd08b490afc9224d700eb08c39a4a1a5aa2317a9 (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.h4
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();