[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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue