22 const float w =
static_cast<float>(std::max(windowWidth, 1));
23 const float h =
static_cast<float>(std::max(windowHeight, 1));
31 const float refW = std::max(_referenceResolution.x, 1.0f);
32 const float refH = std::max(_referenceResolution.y, 1.0f);
33 _scale = std::min(w / refW, h / refH);
34 if (_scale <= 1e-6f) {