MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / updateScrollChangeValue

Method updateScrollChangeValue

forms/scrollbar.cpp:191–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void ScrollBar::updateScrollChangeValue()
192{
193 ScrollChange =
194 static_cast<int>(std::max((Maximum - Minimum + 2) * (float)ScrollPercent / 100.0f, 1.0f));
195}
196
197void ScrollBar::update()
198{

Callers 2

onRenderMethod · 0.80
onRenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected