| 209 | } |
| 210 | |
| 211 | void FormatMenu::setFormat(bool test) { |
| 212 | int selectedIndex = (page * NumItems) + (int)getNav().getIndex(); |
| 213 | if (selectedIndex >= numFormats || badFormats[selectedIndex]) { |
| 214 | return; |
| 215 | } |
| 216 | |
| 217 | if (!setVideoFormat(selectedIndex, test)) { |
| 218 | // can't load format |
| 219 | badFormats[selectedIndex] = true; |
| 220 | } |
| 221 | else if (!test) { |
| 222 | // print OpenGL renderer, which might have changed |
| 223 | printError((const char*)glGetString(GL_RENDERER)); |
| 224 | } |
| 225 | |
| 226 | currentLabel->setString(display->getResolution(display->getResolution())->name); |
| 227 | } |
| 228 | |
| 229 | void FormatMenu::resize(int _width, int _height) { |
| 230 | HUDDialog::resize(_width, _height); |
nothing calls this directly
no test coverage detected