Change redundant bRenderingToCanvas into a helper function
This commit is contained in:
parent
bb0a223b80
commit
ca93d7456a
5 changed files with 4 additions and 7 deletions
|
|
@ -85,7 +85,6 @@ void PolyRenderer::RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int
|
|||
|
||||
viewwidth = width;
|
||||
viewport->RenderTarget = canvas;
|
||||
viewport->bRenderingToCanvas = true;
|
||||
R_SetWindow(12, width, height, height, true);
|
||||
viewport->SetViewport(width, height, WidescreenRatio);
|
||||
viewwindowx = x;
|
||||
|
|
@ -99,7 +98,6 @@ void PolyRenderer::RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int
|
|||
canvas->Unlock();
|
||||
|
||||
viewport->RenderTarget = screen;
|
||||
viewport->bRenderingToCanvas = false;
|
||||
R_ExecuteSetViewSize();
|
||||
float trueratio;
|
||||
ActiveRatio(width, height, &trueratio);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue