handle draw() in case we need to paint the button a garish color
| 68 | |
| 69 | /// handle draw() in case we need to paint the button a garish color |
| 70 | void 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 |