Merge branch 'master' into next
This commit is contained in:
commit
74850fea17
11
src/m_menu.c
11
src/m_menu.c
|
@ -7516,7 +7516,7 @@ static void M_DrawControl(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static INT32 controltochange;
|
static INT32 controltochange;
|
||||||
static char controltochangetext[55];
|
static char controltochangetext[33];
|
||||||
|
|
||||||
static void M_ChangecontrolResponse(event_t *ev)
|
static void M_ChangecontrolResponse(event_t *ev)
|
||||||
{
|
{
|
||||||
|
@ -7588,7 +7588,8 @@ static void M_ChangecontrolResponse(event_t *ev)
|
||||||
}
|
}
|
||||||
else if (ch == KEY_PAUSE)
|
else if (ch == KEY_PAUSE)
|
||||||
{
|
{
|
||||||
static char tmp[155];
|
// This buffer assumes a 125-character message plus a 32-character control name (per controltochangetext buffer size)
|
||||||
|
static char tmp[158];
|
||||||
menu_t *prev = currentMenu->prevMenu;
|
menu_t *prev = currentMenu->prevMenu;
|
||||||
|
|
||||||
if (controltochange == gc_pause)
|
if (controltochange == gc_pause)
|
||||||
|
@ -7612,12 +7613,14 @@ static void M_ChangecontrolResponse(event_t *ev)
|
||||||
|
|
||||||
static void M_ChangeControl(INT32 choice)
|
static void M_ChangeControl(INT32 choice)
|
||||||
{
|
{
|
||||||
static char tmp[55];
|
// This buffer assumes a 35-character message (per below) plus a max control name limit of 32 chars (per controltochangetext)
|
||||||
|
// If you change the below message, then change the size of this buffer!
|
||||||
|
static char tmp[68];
|
||||||
|
|
||||||
controltochange = currentMenu->menuitems[choice].alphaKey;
|
controltochange = currentMenu->menuitems[choice].alphaKey;
|
||||||
sprintf(tmp, M_GetText("Hit the new key for\n%s\nESC for Cancel"),
|
sprintf(tmp, M_GetText("Hit the new key for\n%s\nESC for Cancel"),
|
||||||
currentMenu->menuitems[choice].text);
|
currentMenu->menuitems[choice].text);
|
||||||
strncpy(controltochangetext, currentMenu->menuitems[choice].text, 55);
|
strlcpy(controltochangetext, currentMenu->menuitems[choice].text, 33);
|
||||||
|
|
||||||
M_StartMessage(tmp, M_ChangecontrolResponse, MM_EVENTHANDLER);
|
M_StartMessage(tmp, M_ChangecontrolResponse, MM_EVENTHANDLER);
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,9 @@ typedef off_t off64_t;
|
||||||
#ifdef PNG_WRITE_SUPPORTED
|
#ifdef PNG_WRITE_SUPPORTED
|
||||||
#define USE_PNG // Only actually use PNG if write is supported.
|
#define USE_PNG // Only actually use PNG if write is supported.
|
||||||
#if defined (PNG_WRITE_APNG_SUPPORTED) //|| !defined(PNG_STATIC)
|
#if defined (PNG_WRITE_APNG_SUPPORTED) //|| !defined(PNG_STATIC)
|
||||||
#define USE_APNG
|
#if (PNG_LIBPNG_VER_MAJOR) == 1 && (PNG_LIBPNG_VER_MINOR <= 4) // Supposedly, the current APNG code can't work on newer versions as is
|
||||||
|
#define USE_APNG
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
// See hardware/hw_draw.c for a similar check to this one.
|
// See hardware/hw_draw.c for a similar check to this one.
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue