History

Fixing offscreen rendering on retina display, even without a proxy window

Bradley Austin Davis committed 11 years ago

Commit a0097bc1 parent ad5f1214 files · +16 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -4690,6 +4690,11 @@ int Application::getMaxOctreePacketsPerSecond() { · 4689 unmodified lines
46904690 return _maxOctreePPS;
46914691 }
46924692
4693+qreal Application::getDevicePixelRatio() {
4694+ return _window ? _window->windowHandle()->devicePixelRatio() : 1.0;
4695+}
4696+
4697+
46934698 AbstractViewStateInterface* AbstractViewStateInterface::instance() {
46944699 return qApp;
46954700 }