Center the x-position of BOTTOMSTATUSBAR displayed to the screen so an extra-wide one would display correctly.

Let me know if this breaks any mods that have #2462 with an x-dimension other than 320.

git-svn-id: https://svn.eduke32.com/eduke32@3674 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2013-04-14 06:42:09 +00:00
parent e2ab98261f
commit 8055ec675b
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ int32_t textsc(int32_t sc)
static void G_PatchStatusBar(int32_t x1, int32_t y1, int32_t x2, int32_t y2)
{
int32_t scl = sbarsc(65536);
int32_t tx = sbarx(0), ty = sbary(200-tilesizy[BOTTOMSTATUSBAR]);
int32_t tx = sbarx16((320<<15) - (tilesizx[BOTTOMSTATUSBAR]<<15)); // centered
int32_t ty = sbary(200-tilesizy[BOTTOMSTATUSBAR]);
int32_t clx1 = sbarsc(scale(x1,xdim,320)), cly1 = sbarsc(scale(y1,ydim,200));
int32_t clx2 = sbarsc(scale(x2,xdim,320)), cly2 = sbarsc(scale(y2,ydim,200));