Cleaned up the VIDAPI interface - renderers now export only one symbol.
DirectDraw and Direct3D modules re-integrated as one single driver. VNC is now enabled by default, it will be runtime-disabled if the DLL is not found. The BUGGER device moved to devices/ ; will be an external device (DLL) soon.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* This code is called by the UI frontend modules, and, also,
|
||||
* depends on those same modules for lower-level functions.
|
||||
*
|
||||
* Version: @(#)ui_main.c 1.0.8 2018/05/06
|
||||
* Version: @(#)ui_main.c 1.0.10 2018/05/07
|
||||
*
|
||||
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
*
|
||||
@@ -256,7 +256,18 @@ ui_menu_reset_all(void)
|
||||
menu_set_item(IDM_RESIZE, vid_resize);
|
||||
menu_set_item(IDM_REMEMBER, window_remember);
|
||||
|
||||
menu_set_radio_item(IDM_RENDER_1, 4, -1);
|
||||
/*
|
||||
* The Renderer menu is more complicated.
|
||||
*
|
||||
* We first hide all items, and then we show only
|
||||
* items that are configured in the code. We then
|
||||
* disable items that are currently unavailable.
|
||||
*/
|
||||
for (i = 0; i < plat_vidapi_count(); i++) {
|
||||
if (! plat_vidapi_available(i))
|
||||
menu_enable_item(IDM_RENDER_1 + i, 0);
|
||||
}
|
||||
menu_set_radio_item(IDM_RENDER_1, plat_vidapi_count(), vid_api);
|
||||
|
||||
menu_set_radio_item(IDM_SCALE_1, 4, scale);
|
||||
|
||||
@@ -350,8 +361,11 @@ ui_menu_command(int idm)
|
||||
case IDM_RENDER_2:
|
||||
case IDM_RENDER_3:
|
||||
case IDM_RENDER_4:
|
||||
plat_setvid(idm - IDM_RENDER_1);
|
||||
menu_set_radio_item(IDM_RENDER_1, 4, vid_api);
|
||||
case IDM_RENDER_5:
|
||||
case IDM_RENDER_6:
|
||||
case IDM_RENDER_7:
|
||||
case IDM_RENDER_8:
|
||||
plat_vidapi_set(idm - IDM_RENDER_1);
|
||||
config_save();
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user