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

Not perfect but better than a hardcoded physical size.
This commit is contained in:
Martin Gräßlin 2015-04-02 17:36:38 +02:00
parent 2b185fa7e0
commit d2cd10861b

View file

@ -88,8 +88,7 @@ void WaylandServer::initOutputs()
Q_ASSERT(s); Q_ASSERT(s);
for (int i = 0; i < s->count(); ++i) { for (int i = 0; i < s->count(); ++i) {
OutputInterface *output = m_display->createOutput(m_display); OutputInterface *output = m_display->createOutput(m_display);
// TODO: fixme output->setPhysicalSize(s->size(i) / 3.8);
output->setPhysicalSize(QSize(269, 168));
output->addMode(s->size(i)); output->addMode(s->size(i));
output->create(); output->create();
} }