MCPcopy Create free account
hub / github.com/assaultcube/AC / updatescreensize

Function updatescreensize

source/src/main.cpp:489–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487bool needsautoscreenshot = false;
488
489void updatescreensize()
490{
491 SDL_GetWindowSize(screen, &screenw, &screenh);
492 if(screenh < 1) screenh = 1;
493 VIRTW = screenw * VIRTH / screenh;
494 glViewport(0, 0, screenw, screenh);
495}
496
497void screenres(int w, int h)
498{

Callers 2

setupscreenFunction · 0.85
checkinputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected