Cache the console patch only once in CON_DrawBackpic
This commit is contained in:
parent
2a0e47e28f
commit
1751d7afed
|
@ -1543,8 +1543,8 @@ static void CON_DrawBackpic(void)
|
||||||
if (piclump == LUMPERROR)
|
if (piclump == LUMPERROR)
|
||||||
piclump = W_GetNumForName("MISSING");
|
piclump = W_GetNumForName("MISSING");
|
||||||
|
|
||||||
// Cache the Software patch.
|
// Cache the patch.
|
||||||
con_backpic = W_CacheSoftwarePatchNum(piclump, PU_PATCH);
|
con_backpic = W_CachePatchNum(piclump, PU_PATCH);
|
||||||
|
|
||||||
// Center the backpic, and draw a vertically cropped patch.
|
// Center the backpic, and draw a vertically cropped patch.
|
||||||
w = (con_backpic->width * vid.dupx);
|
w = (con_backpic->width * vid.dupx);
|
||||||
|
@ -1567,8 +1567,7 @@ static void CON_DrawBackpic(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cache the patch normally.
|
// Draw the patch.
|
||||||
con_backpic = W_CachePatchNum(piclump, PU_PATCH);
|
|
||||||
V_DrawCroppedPatch(x << FRACBITS, 0, FRACUNIT, V_NOSCALESTART, con_backpic,
|
V_DrawCroppedPatch(x << FRACBITS, 0, FRACUNIT, V_NOSCALESTART, con_backpic,
|
||||||
0, ( BASEVIDHEIGHT - h ), BASEVIDWIDTH, h);
|
0, ( BASEVIDHEIGHT - h ), BASEVIDWIDTH, h);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue