| 293 | } |
| 294 | |
| 295 | int16 cWindow::CalculateFullscreenSize() { |
| 296 | SDL_DisplayMode current; |
| 297 | SDL_GetCurrentDisplayMode(0, ¤t); |
| 298 | int16 Multiplier = 1; |
| 299 | |
| 300 | while ((mOriginalResolution.mWidth * Multiplier) <= (unsigned int) current.w && (mOriginalResolution.mHeight * Multiplier) <= (unsigned int) current.h ) { |
| 301 | ++Multiplier; |
| 302 | } |
| 303 | |
| 304 | return --Multiplier; |
| 305 | } |
| 306 | |
| 307 | bool cWindow::CanChangeToMultiplier( const int pNewMultiplier ) { |
| 308 | SDL_DisplayMode current; |
nothing calls this directly
no outgoing calls
no test coverage detected