|
|
|
|
@ -1,30 +1,31 @@ |
|
|
|
|
From 112def7856d0af4f49bb201cfbc82d61d3c3964a Mon Sep 17 00:00:00 2001
|
|
|
|
|
From 86ee35ae2a08ce22f266f41e372cc7166412b391 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Jacopo De Simoi <wilderjds@protonmail.com>
|
|
|
|
|
Date: Mon, 23 Jun 2025 09:40:54 +0200
|
|
|
|
|
Subject: [PATCH 02/22] Make output yield tiling constants
|
|
|
|
|
|
|
|
|
|
in order to have pixel-perfect placement, the tile gap size and border
|
|
|
|
|
size must depend on the output size and scaling.
|
|
|
|
|
|
|
|
|
|
fix compilation
|
|
|
|
|
---
|
|
|
|
|
src/core/output.cpp | 11 +++++++++++
|
|
|
|
|
src/core/output.cpp | 10 ++++++++++
|
|
|
|
|
src/core/output.h | 8 ++++++++
|
|
|
|
|
2 files changed, 19 insertions(+)
|
|
|
|
|
2 files changed, 18 insertions(+)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/core/output.cpp b/src/core/output.cpp
|
|
|
|
|
index e7e0c98214..5a5b85ecf8 100644
|
|
|
|
|
index e7e0c98214..187c08ff27 100644
|
|
|
|
|
--- a/src/core/output.cpp
|
|
|
|
|
+++ b/src/core/output.cpp
|
|
|
|
|
@@ -402,6 +402,17 @@ Rect LogicalOutput::geometry() const
|
|
|
|
|
@@ -402,6 +402,16 @@ Rect LogicalOutput::geometry() const
|
|
|
|
|
return Rect(m_backendOutput->position(), m_backendOutput->pixelSize() / scale());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+qreal Output::defaultPadding() const
|
|
|
|
|
+qreal LogicalOutput::defaultPadding() const
|
|
|
|
|
+{
|
|
|
|
|
+ return 4. / scale();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+qreal Output::defaultBorder() const
|
|
|
|
|
+qreal LogicalOutput::defaultBorder() const
|
|
|
|
|
+{
|
|
|
|
|
+ return 1. / scale();
|
|
|
|
|
+}
|
|
|
|
|
|