| 97 | } |
| 98 | |
| 99 | void Window_NumberInput::SetMaxDigits(int idigits_max) { |
| 100 | // Up to 10 digits (highest 32 bit number) |
| 101 | int top = std::max(10, idigits_max); |
| 102 | digits_max = |
| 103 | (idigits_max > top) ? top : |
| 104 | (idigits_max <= 0) ? 1 : |
| 105 | idigits_max; |
| 106 | ResetIndex(); |
| 107 | UpdateCursorRect(); |
| 108 | Refresh(); |
| 109 | } |
| 110 | |
| 111 | bool Window_NumberInput::GetShowOperator() const { |
| 112 | return show_operator; |
no test coverage detected