MCPcopy Index your code
hub / github.com/assaultcube/AC / screenres

Function screenres

source/src/main.cpp:497–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void screenres(int w, int h)
498{
499 if(!screen) return;
500 scr_w = clamp(w, SCR_MINW, SCR_MAXW);
501 scr_h = clamp(h, SCR_MINH, SCR_MAXH);
502 if(fullscreendesktop)
503 {
504 scr_w = min(scr_w, desktopw);
505 scr_h = min(scr_h, desktoph);
506 }
507 if(!(SDL_GetWindowFlags(screen) & SDL_WINDOW_FULLSCREEN)) SDL_SetWindowSize(screen, scr_w, scr_h);
508 else if(!fullscreendesktop) initwarning("screen resolution");
509}
510#if defined(WIN32) || defined(__APPLE__) || !defined(WIN32)
511void setresdata(char *s, enet_uint32 c)
512{

Callers 1

main.cppFile · 0.85

Calls 2

minFunction · 0.85
initwarningFunction · 0.85

Tested by

no test coverage detected