Commit d2cd1086 authored by Martin Flöser's avatar Martin Flöser

[wayland] Use a DPI of 96 to calculate physical size for the server's outputs

Not perfect but better than a hardcoded physical size.
parent 2b185fa7
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment