MCPcopy Create free account
hub / github.com/crawl/crawl / textbackground

Method textbackground

crawl-ref/source/format.cc:541–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541void formatted_string::textbackground(int colour)
542{
543 if (!ops.empty() && ops.back().type == FSOP_BG)
544 ops.pop_back();
545
546 ops.emplace_back(colour, false);
547}
548
549void formatted_string::clear()
550{

Callers 4

textbackgroundFunction · 0.45
parse_stringMethod · 0.45
parse_string1Method · 0.45

Calls 2

pop_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected