From a144acfdf6a4be6654c6bdac4de954b91c577831 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 7 Mar 2022 12:17:46 +0300 Subject: Fix some DPI-dependent tests Change-Id: I3c669802ac558379498c877c8ac4796bbff80f82 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131096 Reviewed-by: Xisco Fauli Reviewed-by: Mike Kaganski Tested-by: Jenkins --- test/source/bootstrapfixture.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 test::BootstrapFixture::getDPIScaling() +{ + return { Application::GetDefaultDevice()->GetDPIX() / 96.0, + Application::GetDefaultDevice()->GetDPIY() / 96.0 }; +} + sal_uInt16 test::BootstrapFixture::getDefaultDeviceBitCount() { ScopedVclPtr device -- cgit