MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetResolution

Method SetResolution

source/common/rendering/v_video.cpp:328–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328bool IVideo::SetResolution ()
329{
330 DFrameBuffer *buff = CreateFrameBuffer();
331
332 if (buff == NULL) // this cannot really happen
333 {
334 return false;
335 }
336
337 screen = buff;
338 screen->InitializeState();
339
340 V_UpdateModeSize(screen->GetWidth(), screen->GetHeight());
341
342 return true;
343}
344
345//
346// V_Init

Callers 1

V_Init2Function · 0.80

Calls 4

V_UpdateModeSizeFunction · 0.85
InitializeStateMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected