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

Method RefreshBgColor

libs/drape_frontend/frontend_renderer.cpp:1932–1939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1930}
1931
1932void FrontendRenderer::RefreshBgColor()
1933{
1934 auto const scale = std::min(df::GetDrawTileScale(m_userEventStream.GetCurrentScreen()), scales::GetUpperStyleScale());
1935 auto const c = dp::Color(drule::rules().GetBgColor(scale), 255);
1936
1937 CHECK(m_context != nullptr, ());
1938 m_context->SetClearColor(c);
1939}
1940
1941void FrontendRenderer::DisablePerspective()
1942{

Callers

nothing calls this directly

Calls 5

GetDrawTileScaleFunction · 0.85
GetUpperStyleScaleFunction · 0.85
GetCurrentScreenMethod · 0.80
ColorClass · 0.70
SetClearColorMethod · 0.45

Tested by

no test coverage detected