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); R_InitFuzzTable(pitch);
dc_destorg = lineptr; dc_destorg = lineptr;
dc_destheight = RenderTarget->GetHeight() - viewwindowy;
for (int i = 0; i < RenderTarget->GetHeight(); i++) for (int i = 0; i < RenderTarget->GetHeight(); i++)
{ {
ylookup[i] = i * pitch; ylookup[i] = i * pitch;

View file

@ -46,7 +46,6 @@ namespace swrenderer
angle_t xtoviewangle[MAXWIDTH + 1]; angle_t xtoviewangle[MAXWIDTH + 1];
uint8_t *dc_destorg = nullptr; uint8_t *dc_destorg = nullptr;
int dc_destheight = 0;
private: private:
void InitTextureMapping(); 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); visible = drawerargs.SetPatchStyle(parms.style, parms.Alpha, 0, parms.fillcolor, basecolormap);
BYTE *destorgsave = viewport->dc_destorg; BYTE *destorgsave = viewport->dc_destorg;
int destheightsave = viewport->dc_destheight;
viewport->dc_destorg = screen->GetBuffer(); viewport->dc_destorg = screen->GetBuffer();
viewport->dc_destheight = screen->GetHeight();
if (viewport->dc_destorg == NULL) if (viewport->dc_destorg == NULL)
{ {
I_FatalError("Attempt to write to buffer of hardware canvas"); 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_destorg = destorgsave;
viewport->dc_destheight = destheightsave;
if (ticdup != 0 && menuactive == MENU_Off) if (ticdup != 0 && menuactive == MENU_Off)
{ {