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

Method updateVisible

src/Interface/TextList.cpp:842–850  ·  view source on GitHub ↗

* Updates the amount of visible rows according to the * current list and font size. */

Source from the content-addressed store, hash-verified

840 * current list and font size.
841 */
842void TextList::updateVisible()
843{
844 _visibleRows = 0;
845 for (int y = 0; y < getHeight(); y += _font->getHeight() + _font->getSpacing())
846 {
847 _visibleRows++;
848 }
849 updateArrows();
850}
851
852/**
853 * Changes whether the list can be scrolled.

Callers

nothing calls this directly

Calls 2

getSpacingMethod · 0.80
getHeightMethod · 0.45

Tested by

no test coverage detected