renderingservertest: Proper DPI for the Output
According to Wikipedia: * screens have a default DPI of 96 * 96 dot/in are 38 dot/cm * 1024/768 -> 269/202 mm
This commit is contained in:
parent
3fc96bdabd
commit
f4c0930a26
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ int main(int argc, char **argv)
|
||||||
shell->create();
|
shell->create();
|
||||||
display.createShm();
|
display.createShm();
|
||||||
OutputInterface *output = display.createOutput(&display);
|
OutputInterface *output = display.createOutput(&display);
|
||||||
output->setPhysicalSize(QSize(400, 300));
|
output->setPhysicalSize(QSize(269, 202));
|
||||||
const QSize windowSize(1024, 768);
|
const QSize windowSize(1024, 768);
|
||||||
output->addMode(windowSize);
|
output->addMode(windowSize);
|
||||||
output->create();
|
output->create();
|
||||||
|
|
Loading…
Reference in a new issue