| 305 | } |
| 306 | |
| 307 | bool cWindow::CanChangeToMultiplier( const int pNewMultiplier ) { |
| 308 | SDL_DisplayMode current; |
| 309 | SDL_GetCurrentDisplayMode(0, ¤t); |
| 310 | |
| 311 | if ( (mOriginalResolution.getWidth() * pNewMultiplier >= current.w || |
| 312 | mOriginalResolution.getHeight() * pNewMultiplier >= current.h) || |
| 313 | pNewMultiplier <= 0 ) |
| 314 | return false; |
| 315 | |
| 316 | return true; |
| 317 | } |
| 318 | |
| 319 | void cWindow::FrameEnd() { |
| 320 |