Skip to content

Commit

Permalink
Fix endianness
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 21, 2024
1 parent b8daa04 commit 9dd5ae1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/hu_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ static void HUlib_DrawTextLine(hu_textline_t *l, bool external)
screenwidth = SCREENWIDTH;
}

screenarea = screenwidth * (y + hu_font[0]->height * 4 + 10);
screenarea = screenwidth * (y + SHORT(hu_font[0]->height) * 4 + 10);

for (int i = 0; i < screenarea; i++)
tempscreen[i] = PINK;
Expand All @@ -384,7 +384,7 @@ static void HUlib_DrawTextLine(hu_textline_t *l, bool external)
if (c == '\n' || i == wrap)
{
x = l->x;
y += hu_font[0]->height + 2;
y += SHORT(hu_font[0]->height) + 2;

if (c == ' ')
continue;
Expand Down
8 changes: 4 additions & 4 deletions src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void HU_Init(void)
break;
}
}
}
}
}

keypics[it_bluecard].patch = HU_LoadHUDKeyPatch(it_bluecard);
Expand Down Expand Up @@ -1550,12 +1550,12 @@ void HU_Drawer(void)
if (vid_widescreen)
{
w_title.x = (r_screensize == r_screensize_max - 1 ? WIDESCREENDELTA * 2 : OVERLAYTEXTX);
w_title.y = MAPHEIGHT - hu_font[0]->height * 2 - (r_screensize == r_screensize_max - 1 ? 6 : 20);
w_title.y = MAPHEIGHT - SHORT(hu_font[0]->height) * 2 - (r_screensize == r_screensize_max - 1 ? 6 : 20);
}
else
{
w_title.x = 0;
w_title.y = MAPHEIGHT - hu_font[0]->height * 2 - 6;
w_title.y = MAPHEIGHT - SHORT(hu_font[0]->height) * 2 - 6;
}

HUlib_DrawAutomapTextLine(&w_title, false);
Expand Down Expand Up @@ -1596,7 +1596,7 @@ void HU_Drawer(void)
else
{
w_title.x = 25;
w_title.y = MAPHEIGHT - hu_font[0]->height * 2 - 16;
w_title.y = MAPHEIGHT - SHORT(hu_font[0]->height) * 2 - 16;
HUlib_DrawAutomapTextLine(&w_title, true);
}
}
Expand Down

0 comments on commit 9dd5ae1

Please sign in to comment.