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

Method setScale

src/Interface/Bar.cpp:87–91  ·  view source on GitHub ↗

* Changes the scale factor used to draw the bar values. * @param scale Scale in pixels/unit. */

Source from the content-addressed store, hash-verified

85 * @param scale Scale in pixels/unit.
86 */
87void Bar::setScale(double scale)
88{
89 _scale = scale;
90 _redraw = true;
91}
92
93/**
94 * Returns the scale factor used to draw the bar values.

Callers 4

BattlescapeStateMethod · 0.80
UnitInfoStateMethod · 0.80
SoldierInfoStateMethod · 0.80
BaseInfoStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected