| 36 | } |
| 37 | |
| 38 | void MidiDriverChoice::step() { |
| 39 | text = (port && port->driver) ? port->getDriver()->getName() : ""; |
| 40 | if (text.empty()) { |
| 41 | text = "(" + string::translate("MidiDisplay.noDriver") + ")"; |
| 42 | color.a = 0.5f; |
| 43 | } |
| 44 | else { |
| 45 | color.a = 1.f; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | struct MidiDriverItem : ui::MenuItem { |
| 50 | midi::Port* port; |
nothing calls this directly
no test coverage detected