* Updates the display resolution based on the selection. */
| 371 | * Updates the display resolution based on the selection. |
| 372 | */ |
| 373 | void OptionsVideoState::updateDisplayResolution() |
| 374 | { |
| 375 | std::wostringstream ssW, ssH; |
| 376 | ssW << (int)_res[_resCurrent]->w; |
| 377 | ssH << (int)_res[_resCurrent]->h; |
| 378 | _txtDisplayWidth->setText(ssW.str()); |
| 379 | _txtDisplayHeight->setText(ssH.str()); |
| 380 | |
| 381 | Options::newDisplayWidth = _res[_resCurrent]->w; |
| 382 | Options::newDisplayHeight = _res[_resCurrent]->h; |
| 383 | } |
| 384 | /** |
| 385 | * Changes the Display Width option. |
| 386 | * @param action Pointer to an action. |