Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -4690,6 +4690,11 @@ int Application::getMaxOctreePacketsPerSecond() { · 4689 unmodified lines | ||
| 4690 | 4690 | return _maxOctreePPS; |
| 4691 | 4691 | } |
| 4692 | 4692 | |
| 4693 | +qreal Application::getDevicePixelRatio() { | |
| 4694 | + return _window ? _window->windowHandle()->devicePixelRatio() : 1.0; | |
| 4695 | +} | |
| 4696 | + | |
| 4697 | + | |
| 4693 | 4698 | AbstractViewStateInterface* AbstractViewStateInterface::instance() { |
| 4694 | 4699 | return qApp; |
| 4695 | 4700 | } |