From bb0a223b80c5aa8442c16e9802a7f73a4bfba27c Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 1 Feb 2017 21:55:55 +0100 Subject: [PATCH] Remove unused dc_destheight --- src/swrenderer/scene/r_viewport.cpp | 1 - src/swrenderer/scene/r_viewport.h | 1 - src/v_draw.cpp | 3 --- 3 files changed, 5 deletions(-) diff --git a/src/swrenderer/scene/r_viewport.cpp b/src/swrenderer/scene/r_viewport.cpp index d4c8fae842..0c0e0e931b 100644 --- a/src/swrenderer/scene/r_viewport.cpp +++ b/src/swrenderer/scene/r_viewport.cpp @@ -133,7 +133,6 @@ namespace swrenderer R_InitFuzzTable(pitch); dc_destorg = lineptr; - dc_destheight = RenderTarget->GetHeight() - viewwindowy; for (int i = 0; i < RenderTarget->GetHeight(); i++) { ylookup[i] = i * pitch; diff --git a/src/swrenderer/scene/r_viewport.h b/src/swrenderer/scene/r_viewport.h index a430dbd975..0fc90bc514 100644 --- a/src/swrenderer/scene/r_viewport.h +++ b/src/swrenderer/scene/r_viewport.h @@ -46,7 +46,6 @@ namespace swrenderer angle_t xtoviewangle[MAXWIDTH + 1]; uint8_t *dc_destorg = nullptr; - int dc_destheight = 0; private: void InitTextureMapping(); diff --git a/src/v_draw.cpp b/src/v_draw.cpp index bf3d402227..1e284c7385 100644 --- a/src/v_draw.cpp +++ b/src/v_draw.cpp @@ -204,9 +204,7 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms) visible = drawerargs.SetPatchStyle(parms.style, parms.Alpha, 0, parms.fillcolor, basecolormap); BYTE *destorgsave = viewport->dc_destorg; - int destheightsave = viewport->dc_destheight; viewport->dc_destorg = screen->GetBuffer(); - viewport->dc_destheight = screen->GetHeight(); if (viewport->dc_destorg == NULL) { I_FatalError("Attempt to write to buffer of hardware canvas"); @@ -298,7 +296,6 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms) } viewport->dc_destorg = destorgsave; - viewport->dc_destheight = destheightsave; if (ticdup != 0 && menuactive == MENU_Off) {