mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 11:40:52 +00:00
Properly support widescreen in Y_IntermissionDrawer (I meant to do this in charscleanup but forgot).
This commit is contained in:
parent
b8446effe8
commit
3a53d6d3b9
1 changed files with 3 additions and 2 deletions
|
@ -417,6 +417,7 @@ void Y_IntermissionDrawer(void)
|
||||||
{
|
{
|
||||||
#define NUMFORNEWCOLUMN 8
|
#define NUMFORNEWCOLUMN 8
|
||||||
INT32 y = 41, gutter = ((data.match.numplayers > NUMFORNEWCOLUMN) ? 0 : (BASEVIDWIDTH/2));
|
INT32 y = 41, gutter = ((data.match.numplayers > NUMFORNEWCOLUMN) ? 0 : (BASEVIDWIDTH/2));
|
||||||
|
INT32 dupadjust = (vid.width/vid.dupx), duptweak = (dupadjust - BASEVIDWIDTH)/2;
|
||||||
const char *timeheader;
|
const char *timeheader;
|
||||||
|
|
||||||
if (data.match.rankingsmode)
|
if (data.match.rankingsmode)
|
||||||
|
@ -426,7 +427,7 @@ void Y_IntermissionDrawer(void)
|
||||||
|
|
||||||
// draw the level name
|
// draw the level name
|
||||||
V_DrawCenteredString(-4 + x + BASEVIDWIDTH/2, 12, 0, data.match.levelstring);
|
V_DrawCenteredString(-4 + x + BASEVIDWIDTH/2, 12, 0, data.match.levelstring);
|
||||||
V_DrawFill(x, 34, 312, 1, 0);
|
V_DrawFill((x-3) - duptweak, 34, dupadjust-2, 1, 0);
|
||||||
|
|
||||||
if (data.match.encore)
|
if (data.match.encore)
|
||||||
V_DrawCenteredString(-4 + x + BASEVIDWIDTH/2, 12-8, hilicol, "ENCORE MODE");
|
V_DrawCenteredString(-4 + x + BASEVIDWIDTH/2, 12-8, hilicol, "ENCORE MODE");
|
||||||
|
@ -434,7 +435,7 @@ void Y_IntermissionDrawer(void)
|
||||||
if (!gutter)
|
if (!gutter)
|
||||||
{
|
{
|
||||||
V_DrawFill(x+156, 24, 1, 158, 0);
|
V_DrawFill(x+156, 24, 1, 158, 0);
|
||||||
V_DrawFill(x, 182, 312, 1, 0);
|
V_DrawFill((x-3) - duptweak, 182, dupadjust-2, 1, 0);
|
||||||
|
|
||||||
V_DrawCenteredString(x+6+(BASEVIDWIDTH/2), 24, hilicol, "#");
|
V_DrawCenteredString(x+6+(BASEVIDWIDTH/2), 24, hilicol, "#");
|
||||||
V_DrawString(x+36+(BASEVIDWIDTH/2), 24, hilicol, "NAME");
|
V_DrawString(x+36+(BASEVIDWIDTH/2), 24, hilicol, "NAME");
|
||||||
|
|
Loading…
Reference in a new issue