* Selects a smaller display resolution. * @param action Pointer to an action. */
| 353 | * @param action Pointer to an action. |
| 354 | */ |
| 355 | void OptionsVideoState::btnDisplayResolutionDownClick(Action *) |
| 356 | { |
| 357 | if (_resAmount == 0) |
| 358 | return; |
| 359 | if (_resCurrent >= _resAmount-1) |
| 360 | { |
| 361 | _resCurrent = 0; |
| 362 | } |
| 363 | else |
| 364 | { |
| 365 | _resCurrent++; |
| 366 | } |
| 367 | updateDisplayResolution(); |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * Updates the display resolution based on the selection. |
nothing calls this directly
no outgoing calls
no test coverage detected