mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-25 20:21:20 +00:00
NiGHTS Attack menu: Let patch offsets control the alignment of the top border.
This commit is contained in:
parent
c6c0a9dd1a
commit
f90a6540d6
1 changed files with 3 additions and 1 deletions
|
@ -5261,7 +5261,9 @@ static void M_DrawNightsAttackBackground(void)
|
|||
if (border_height > 0)
|
||||
{
|
||||
// top border
|
||||
y = border_height - ((topborderheight-5) * vid.dupy);
|
||||
INT16 yoffset = SHORT(topborder->topoffset);
|
||||
y = border_height - ((topborderheight - yoffset) * vid.dupy);
|
||||
y += (yoffset * dupy);
|
||||
for (i = 0; i < (vid.height/border_height) + 1; i++)
|
||||
{
|
||||
for (j = 0; j < (vid.width/topborderwidth); j++)
|
||||
|
|
Loading…
Reference in a new issue