| 557 | } |
| 558 | |
| 559 | bool OutputRequiresScaling() |
| 560 | { |
| 561 | #ifdef USE_SDL1 |
| 562 | if (HeadlessMode) |
| 563 | return false; |
| 564 | return gnScreenWidth != GetOutputSurface()->w || gnScreenHeight != GetOutputSurface()->h; |
| 565 | #else // SDL2, scaling handled by renderer. |
| 566 | return false; |
| 567 | #endif |
| 568 | } |
| 569 | |
| 570 | void ScaleOutputRect(SDL_Rect *rect) |
| 571 | { |
no test coverage detected