Remove unused dc_destheight

This commit is contained in:
Magnus Norddahl 2017-02-01 21:55:55 +01:00
parent 7b578bbb53
commit bb0a223b80
3 changed files with 0 additions and 5 deletions

View file

@ -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;

View file

@ -46,7 +46,6 @@ namespace swrenderer
angle_t xtoviewangle[MAXWIDTH + 1];
uint8_t *dc_destorg = nullptr;
int dc_destheight = 0;
private:
void InitTextureMapping();

View file

@ -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)
{