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

Function OutputRequiresScaling

Source/utils/display.cpp:559–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559bool 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
570void ScaleOutputRect(SDL_Rect *rect)
571{

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