Fix issues with the level platter in nonstandard resolutions.

This commit is contained in:
toasterbabe 2018-03-19 16:40:15 +00:00
parent c0cc1471e5
commit 4798f85382

View file

@ -4425,14 +4425,14 @@ static void M_DrawLevelPlatterMenu(void)
V_DrawPatchFill(W_CachePatchName("SRB2BACK", PU_CACHE)); V_DrawPatchFill(W_CachePatchName("SRB2BACK", PU_CACHE));
// finds row at top of the screen // finds row at top of the screen
while (y > 0) while (y > -8)
{ {
iter = ((iter == 0) ? levelselect.numrows-1 : iter-1); iter = ((iter == 0) ? levelselect.numrows-1 : iter-1);
y -= lsvseperation(iter); y -= lsvseperation(iter);
} }
// draw from top to bottom // draw from top to bottom
while (y < 200) while (y < (vid.height/vid.dupy))
{ {
M_DrawLevelPlatterRow(iter, y); M_DrawLevelPlatterRow(iter, y);
y += lsvseperation(iter); y += lsvseperation(iter);