From d2cd10861bf474c4b784d8e2849f01af97aec2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 2 Apr 2015 17:36:38 +0200 Subject: [PATCH] [wayland] Use a DPI of 96 to calculate physical size for the server's outputs Not perfect but better than a hardcoded physical size. --- wayland_server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wayland_server.cpp b/wayland_server.cpp index 12ca95adc0..188d5b4e34 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -88,8 +88,7 @@ void WaylandServer::initOutputs() Q_ASSERT(s); for (int i = 0; i < s->count(); ++i) { OutputInterface *output = m_display->createOutput(m_display); - // TODO: fixme - output->setPhysicalSize(QSize(269, 168)); + output->setPhysicalSize(s->size(i) / 3.8); output->addMode(s->size(i)); output->create(); }