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

Function ReinitializeIntegerScale

Source/utils/display.cpp:390–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void ReinitializeIntegerScale()
391{
392 if (*sgOptions.Graphics.fitToScreen) {
393 ResizeWindow();
394 return;
395 }
396
397 if (renderer != nullptr && SDL_RenderSetIntegerScale(renderer, *sgOptions.Graphics.integerScaling ? SDL_TRUE : SDL_FALSE) < 0) {
398 ErrSdl();
399 }
400}
401#endif
402
403void ReinitializeRenderer()

Callers

nothing calls this directly

Calls 1

ResizeWindowFunction · 0.85

Tested by

no test coverage detected