MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setSmall

Method setSmall

src/Interface/TextList.cpp:579–589  ·  view source on GitHub ↗

* Changes the text list to use the small-size font. */

Source from the content-addressed store, hash-verified

577 * Changes the text list to use the small-size font.
578 */
579void TextList::setSmall()
580{
581 _font = _small;
582
583 delete _selector;
584 _selector = new Surface(getWidth(), _font->getHeight() + _font->getSpacing(), getX(), getY());
585 _selector->setPalette(getPalette());
586 _selector->setVisible(false);
587
588 updateVisible();
589}
590
591/**
592 * If enabled, the columns will match the text width.

Callers 1

addRowMethod · 0.45

Calls 4

getSpacingMethod · 0.80
getHeightMethod · 0.45
setPaletteMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected