| 92 | //========================================================================== |
| 93 | |
| 94 | void 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 | |
| 110 | void DFrameBuffer::SetClearColor(int color) |
| 111 | { |
nothing calls this directly
no test coverage detected