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

Function OutputRequiresScaling

SourceX/display.cpp:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146bool OutputRequiresScaling()
147{
148#ifdef USE_SDL1
149 return SCREEN_WIDTH != GetOutputSurface()->w || SCREEN_HEIGHT != GetOutputSurface()->h;
150#else // SDL2, scaling handled by renderer.
151 return false;
152#endif
153}
154
155void ScaleOutputRect(SDL_Rect *rect)
156{

Callers 6

SetVideoModeToPrimaryFunction · 0.85
ScaleOutputRectFunction · 0.85
ScaleSurfaceToOutputFunction · 0.85
OutputToLogicalFunction · 0.85
LogicalToOutputFunction · 0.85
BlitFunction · 0.85

Calls 1

GetOutputSurfaceFunction · 0.85

Tested by

no test coverage detected