| 189 | #endif // USE_SDL1 |
| 190 | |
| 191 | void ScaleSurfaceToOutput(SDL_Surface **surface) |
| 192 | { |
| 193 | #ifdef USE_SDL1 |
| 194 | if (!OutputRequiresScaling()) |
| 195 | return; |
| 196 | SDL_Surface *stretched = CreateScaledSurface(*surface); |
| 197 | SDL_FreeSurface((*surface)); |
| 198 | *surface = stretched; |
| 199 | #endif |
| 200 | } |
| 201 | |
| 202 | } // namespace dvl |
no test coverage detected