summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-03-07 12:17:46 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-03-07 12:53:27 +0100
commita144acfdf6a4be6654c6bdac4de954b91c577831 (patch)
tree51c5e3335e502ec42ccdb550786e0707d5538be8 /test
parent4618de024845573e33324539a7b455cd274a5fc3 (diff)
Fix some DPI-dependent tests
Change-Id: I3c669802ac558379498c877c8ac4796bbff80f82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131096 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'test')
-rw-r--r--test/source/bootstrapfixture.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index 4d933a3fc5d2..c13caf807d1e 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -264,6 +264,12 @@ bool test::BootstrapFixture::IsDefaultDPI()
&& Application::GetDefaultDevice()->GetDPIY() == 96);
}
+std::pair<double, double> test::BootstrapFixture::getDPIScaling()
+{
+ return { Application::GetDefaultDevice()->GetDPIX() / 96.0,
+ Application::GetDefaultDevice()->GetDPIY() / 96.0 };
+}
+
sal_uInt16 test::BootstrapFixture::getDefaultDeviceBitCount()
{
ScopedVclPtr<VirtualDevice> device