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:
Martin Gräßlin 2014-11-27 19:25:17 +01:00
parent 3fc96bdabd
commit f4c0930a26

View file

@ -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();