Two small renderer switching changes:

- Allow renderer switching in resolution menu
- Fix "(F10)" suffix not being shown on the renderer option
This commit is contained in:
spherallic 2022-09-07 14:00:56 +02:00
parent 541e2a4fe6
commit f564090c80

View file

@ -2157,7 +2157,7 @@ static void M_VideoOptions(INT32 choice)
{
OP_VideoOptionsMenu[op_video_renderer].status = (IT_STRING | IT_CVAR);
OP_VideoOptionsMenu[op_video_renderer].patch = NULL;
OP_VideoOptionsMenu[op_video_renderer].text = "Renderer";
OP_VideoOptionsMenu[op_video_renderer].text = "Renderer (F10)";
}
#endif
@ -13456,6 +13456,10 @@ static void M_HandleVideoMode(INT32 ch)
setmodeneeded = VID_GetModeForSize(cv_scr_width_w.value, cv_scr_height_w.value)+1;
break;
case KEY_F10: // Renderer toggle, also processed inside menus
CV_AddValue(&cv_renderer, 1);
break;
case KEY_F11:
S_StartSound(NULL, sfx_menu1);
CV_SetValue(&cv_fullscreen, !cv_fullscreen.value);