diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index cd7e6480d..1dad5a19f 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -2198,7 +2198,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin) if (M_LOAD.currentEntry >= (int32_t)g_nummenusaves) { - mmenutext(origin.x + (72<<16), origin.y + (100<<16), "Empty"); + menutext_centeralign(origin.x + (101<<16), origin.y + (97<<16), "Empty"); break; } @@ -2210,8 +2210,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin) if (msv.isOldVer) { - mmenutext(origin.x + (53<<16), origin.y + (70<<16), "Previous"); - mmenutext(origin.x + (58<<16), origin.y + (90<<16), "Version"); + menutext_centeralign(origin.x + (101<<16), origin.y + (97<<16), "Previous\nVersion"); #ifndef EDUKE32_SIMPLE_MENU Bsprintf(tempbuf,"Saved: %d.%d.%d %d-bit", savehead.majorver, savehead.minorver, @@ -2271,8 +2270,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin) if (g_menusaves[M_SAVE.currentEntry-1].isOldVer) { - mmenutext(origin.x + (53<<16), origin.y + (70<<16), "Previous"); - mmenutext(origin.x + (58<<16), origin.y + (90<<16), "Version"); + menutext_centeralign(origin.x + (101<<16), origin.y + (97<<16), "Previous\nVersion"); #ifndef EDUKE32_SIMPLE_MENU Bsprintf(tempbuf,"Saved: %d.%d.%d %d-bit", savehead.majorver, savehead.minorver, @@ -2288,7 +2286,7 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin) } } else - mmenutext(origin.x + (82<<16), origin.y + (100<<16), "New"); + menutext_centeralign(origin.x + (101<<16), origin.y + (97<<16), "New"); if (ud.multimode > 1) { diff --git a/source/duke3d/src/screentext.h b/source/duke3d/src/screentext.h index 33adb1d89..92cb1701e 100644 --- a/source/duke3d/src/screentext.h +++ b/source/duke3d/src/screentext.h @@ -72,6 +72,7 @@ extern int32_t textsc(int32_t sc); #define minitextshade(x, y, t, s, p, sb) minitext_(x,y,t,s,p,sb) #define minitext(x, y, t, p, sb) minitext_(x,y,t,0,p,sb) #define menutext(x, y, t) menutext_((x), (y), 0, (t), 10|16, 0) +#define menutext_centeralign(x, y, t) menutext_((x), (y), 0, (t), 10|16, TEXT_XCENTER|TEXT_YCENTER) #define menutext_center(y, t) menutext_(160<<16, (y)<<16, 0, (t), 10|16, TEXT_XCENTER) #define gametext(x, y, t) gametext_simple((x)<<16, (y)<<16, (t)) #define gametext_widenumber(x, y, t) gametext_((x)<<16, (y)<<16, (t), 0, MF_Bluefont.pal, 1024, 0, TEXT_GAMETEXTNUMHACK)