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

Method Update

source/common/rendering/v_framebuffer.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92//==========================================================================
93
94void DFrameBuffer::Update()
95{
96 int initialWidth = GetClientWidth();
97 int initialHeight = GetClientHeight();
98 int clientWidth = ViewportScaledWidth(initialWidth, initialHeight);
99 int clientHeight = ViewportScaledHeight(initialWidth, initialHeight);
100 if (clientWidth < VID_MIN_WIDTH) clientWidth = VID_MIN_WIDTH;
101 if (clientHeight < VID_MIN_HEIGHT) clientHeight = VID_MIN_HEIGHT;
102 if (clientWidth > 0 && clientHeight > 0 && (GetWidth() != clientWidth || GetHeight() != clientHeight))
103 {
104 SetVirtualSize(clientWidth, clientHeight);
105 V_OutputResized(clientWidth, clientHeight);
106 mVertexData->OutputResized(clientWidth, clientHeight);
107 }
108}
109
110void DFrameBuffer::SetClearColor(int color)
111{

Callers

nothing calls this directly

Calls 5

ViewportScaledWidthFunction · 0.85
ViewportScaledHeightFunction · 0.85
GetHeightFunction · 0.85
V_OutputResizedFunction · 0.85
OutputResizedMethod · 0.80

Tested by

no test coverage detected