| 59 | // ----------------------------------------------------------------------- |
| 60 | |
| 61 | static double getScaleFactor(const PuglView* const view) |
| 62 | { |
| 63 | // allow custom scale for testing |
| 64 | if (const char* const scale = getenv("DPF_SCALE_FACTOR")) |
| 65 | return std::max(1.0, std::atof(scale)); |
| 66 | |
| 67 | if (view != nullptr) |
| 68 | return puglGetScaleFactor(view); |
| 69 | |
| 70 | return 1.0; |
| 71 | } |
| 72 | |
| 73 | static PuglView* puglNewViewWithTransientParent(PuglWorld* const world, PuglView* const transientParentView) |
| 74 | { |
no test coverage detected