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

Method draw

src/Interface/ToggleTextButton.cpp:70–79  ·  view source on GitHub ↗

handle draw() in case we need to paint the button a garish color

Source from the content-addressed store, hash-verified

68
69/// handle draw() in case we need to paint the button a garish color
70void ToggleTextButton::draw()
71{
72 if (_invertMid > -1) _fakeGroup = 0; // nevermind, TextButton. We'll invert the surface ourselves.
73 TextButton::draw();
74
75 if (_invertMid > -1 && _isPressed)
76 {
77 this->invert(_invertMid);
78 }
79}
80
81
82

Callers

nothing calls this directly

Calls 1

invertMethod · 0.80

Tested by

no test coverage detected