[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:
parent
2b185fa7e0
commit
d2cd10861b
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue