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

Method drawTrack

src/Interface/ScrollBar.cpp:242–260  ·  view source on GitHub ↗

* Draws the track (background bar) semi-transparent. */

Source from the content-addressed store, hash-verified

240 * Draws the track (background bar) semi-transparent.
241 */
242void ScrollBar::drawTrack()
243{
244 if (_bg)
245 {
246 _track->copy(_bg);
247 if (_contrast)
248 {
249 _track->offset(-5, 1);
250 }
251 else if (_list->getComboBox())
252 {
253 _track->offset(+1, Palette::backPos);
254 }
255 else
256 {
257 _track->offset(-5, Palette::backPos);
258 }
259 }
260}
261
262/**
263 * Draws the thumb (button) as a hollow square.

Callers

nothing calls this directly

Calls 3

copyMethod · 0.80
getComboBoxMethod · 0.80
offsetMethod · 0.45

Tested by

no test coverage detected