MCPcopy Create free account
hub / github.com/comaps/comaps / SetLargeFontsSize

Method SetLargeFontsSize

libs/map/framework.cpp:2507–2517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2505}
2506
2507void Framework::SetLargeFontsSize(bool isLargeSize)
2508{
2509 settings::Set(kLargeFontsSize, isLargeSize);
2510
2511 double const scaleFactor = isLargeSize ? kLargeFontsScaleFactor : 1.0;
2512
2513 ASSERT(m_drapeEngine.get() != nullptr, ());
2514 m_drapeEngine->SetFontScaleFactor(scaleFactor);
2515
2516 InvalidateRect(GetCurrentViewport());
2517}
2518
2519bool Framework::LoadTrafficEnabled()
2520{

Calls 4

ASSERTFunction · 0.85
SetFontScaleFactorMethod · 0.80
getMethod · 0.65
SetFunction · 0.50

Tested by

no test coverage detected