MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / ScaleResolutionForDisplay

Function ScaleResolutionForDisplay

examples/Cpp/ExampleBase/ExampleBase.cpp:479–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479static LLGL::Extent2D ScaleResolutionForDisplay(const LLGL::Extent2D& res, const LLGL::Display* display)
480{
481 if (display != nullptr)
482 return ScaleResolution(res, display->GetScale());
483 else
484 return res;
485}
486
487ExampleBase::ExampleBase(const LLGL::UTF8String& title)
488{

Callers 1

ExampleBaseMethod · 0.85

Calls 2

ScaleResolutionFunction · 0.85
GetScaleMethod · 0.45

Tested by

no test coverage detected