From 8055ec675b4cb9066563e1b1c1751d3771a4d15e Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sun, 14 Apr 2013 06:42:09 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 98f488aaa..924381f6d 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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));