MCPcopy Create free account
hub / github.com/diasurgical/devilution / ScaleSurfaceToOutput

Function ScaleSurfaceToOutput

SourceX/display.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189#endif // USE_SDL1
190
191void 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

Callers 3

DrawTTFFunction · 0.85
LoadArtFunction · 0.85
PrepareLineFunction · 0.85

Calls 2

OutputRequiresScalingFunction · 0.85
CreateScaledSurfaceFunction · 0.85

Tested by

no test coverage detected