diff --git a/src/include/86box/resource.h b/src/include/86box/resource.h index 7cd019093..a72822b99 100644 --- a/src/include/86box/resource.h +++ b/src/include/86box/resource.h @@ -259,7 +259,7 @@ #define IDM_ABOUT 40001 -#define IDC_ABOUT_ICON 65535 +#define IDC_ABOUT_ICON 65535 #define IDM_ACTION_RCTRL_IS_LALT 40010 #define IDM_ACTION_SCREENSHOT 40011 #define IDM_ACTION_HRESET 40012 @@ -275,16 +275,7 @@ #define IDM_VID_REMEMBER 40041 #define IDM_VID_SDL_SW 40050 #define IDM_VID_SDL_HW 40051 -#ifdef USE_D2D -#define IDM_VID_D2D 40052 -#ifdef USE_VNC -#define IDM_VID_VNC 40053 -#endif -#else -#ifdef USE_VNC #define IDM_VID_VNC 40052 -#endif -#endif #define IDM_VID_SCALE_1X 40055 #define IDM_VID_SCALE_2X 40056 #define IDM_VID_SCALE_3X 40057 diff --git a/src/include/86box/win.h b/src/include/86box/win.h index 597ebaa59..33d38a175 100644 --- a/src/include/86box/win.h +++ b/src/include/86box/win.h @@ -64,11 +64,7 @@ /* The emulator has shut down. */ #define WM_HAS_SHUTDOWN 0x8897 -#ifdef USE_VNC #define RENDERERS_NUM 3 -#else -#define RENDERERS_NUM 2 -#endif #ifdef __cplusplus diff --git a/src/machine/m_at_socket7_s7.c b/src/machine/m_at_socket7_s7.c index 2d8db5946..9b4a615db 100644 --- a/src/machine/m_at_socket7_s7.c +++ b/src/machine/m_at_socket7_s7.c @@ -575,7 +575,7 @@ machine_at_tx97_init(const machine_t *model) device_add(&i430tx_device); device_add(&piix4_device); device_add(&keyboard_ps2_pci_device); - device_add(&w83977tf_device); + device_add(&w83877tf_acorp_device); device_add(&intel_flash_bxt_device); hwm_values_t machine_hwm = { diff --git a/src/sio_w83977f.c b/src/sio_w83977f.c index 27082516d..469428fe6 100644 --- a/src/sio_w83977f.c +++ b/src/sio_w83977f.c @@ -100,7 +100,7 @@ w83977f_lpt_handler(w83977f_t *dev) { uint16_t io_mask, io_base = (dev->dev_regs[1][0x30] << 8) | dev->dev_regs[1][0x31]; int io_len = get_lpt_length(dev); - io_base &= (0xfff & ~io_len); + io_base &= (0xff8 | io_len); io_mask = 0xffc; if (io_len == 8) io_mask = 0xff8; diff --git a/src/vnc.c b/src/vnc.c index 55f3227d3..5813767fb 100644 --- a/src/vnc.c +++ b/src/vnc.c @@ -83,8 +83,8 @@ vnc_ptrevent(int but, int x, int y, rfbClientPtr cl) if (x>=0 && x=0 && y #include <86box/plat_midi.h> #include <86box/ui.h> -#ifdef USE_VNC -# include <86box/vnc.h> -#endif +#include <86box/vnc.h> #include <86box/win_sdl.h> #include <86box/win.h> @@ -88,17 +86,13 @@ static const struct { } vid_apis[2][RENDERERS_NUM] = { { { "SDL_Software", 1, (int(*)(void*))sdl_inits, sdl_close, NULL, sdl_pause, sdl_enable }, - { "SDL_Hardware", 1, (int(*)(void*))sdl_inith, sdl_close, NULL, sdl_pause, sdl_enable } -#ifdef USE_VNC - ,{ "VNC", 0, vnc_init, vnc_close, vnc_resize, vnc_pause, NULL } -#endif + { "SDL_Hardware", 1, (int(*)(void*))sdl_inith, sdl_close, NULL, sdl_pause, sdl_enable }, + { "VNC", 0, vnc_init, vnc_close, vnc_resize, vnc_pause, NULL } }, { { "SDL_Software", 1, (int(*)(void*))sdl_inits_fs, sdl_close, sdl_resize, sdl_pause, sdl_enable }, - { "SDL_Hardware", 1, (int(*)(void*))sdl_inith_fs, sdl_close, sdl_resize, sdl_pause, sdl_enable } -#ifdef USE_VNC - ,{ "VNC", 0, vnc_init, vnc_close, vnc_resize, vnc_pause, NULL } -#endif + { "SDL_Hardware", 1, (int(*)(void*))sdl_inith_fs, sdl_close, sdl_resize, sdl_pause, sdl_enable }, + { "VNC", 0, vnc_init, vnc_close, vnc_resize, vnc_pause, NULL } }, }; @@ -691,12 +685,9 @@ plat_vidapi_name(int api) break; case 1: break; - -#ifdef USE_VNC case 2: name = "vnc"; break; -#endif default: fatal("Unknown renderer: %i\n", api); break; diff --git a/src/win/win_mouse.c b/src/win/win_mouse.c index f3fb44851..09a27f052 100644 --- a/src/win/win_mouse.c +++ b/src/win/win_mouse.c @@ -89,7 +89,6 @@ win_mouse_handle(PRAWINPUT raw) * seems to work fine for RDP on Windows 10 * Not sure about other environments. */ - x=state.lLastX, y=state.lLastY; mousestate.dx += (state.lLastX - x)/100; mousestate.dy += (state.lLastY - y)/100; x=state.lLastX; diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 9901d9ad7..900fb137a 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -119,12 +119,6 @@ ResetAllMenus(void) EnableMenuItem(menuMain, IDM_CONFIG_SAVE, MF_DISABLED); #endif -#ifdef USE_D2D - /* Disable Direct2D menu option on NT5 */ - if(LOBYTE(LOWORD(GetVersion())) < 6) - EnableMenuItem(menuMain, IDM_VID_D2D, MF_GRAYED); -#endif - CheckMenuItem(menuMain, IDM_ACTION_RCTRL_IS_LALT, MF_UNCHECKED); CheckMenuItem(menuMain, IDM_UPDATE_ICONS, MF_UNCHECKED); @@ -160,12 +154,7 @@ ResetAllMenus(void) CheckMenuItem(menuMain, IDM_VID_RESIZE, MF_UNCHECKED); CheckMenuItem(menuMain, IDM_VID_SDL_SW, MF_UNCHECKED); CheckMenuItem(menuMain, IDM_VID_SDL_HW, MF_UNCHECKED); -#ifdef USE_D2D - CheckMenuItem(menuMain, IDM_VID_D2D, MF_UNCHECKED); -#endif -#ifdef USE_VNC CheckMenuItem(menuMain, IDM_VID_VNC, MF_UNCHECKED); -#endif CheckMenuItem(menuMain, IDM_VID_FS_FULL+0, MF_UNCHECKED); CheckMenuItem(menuMain, IDM_VID_FS_FULL+1, MF_UNCHECKED); CheckMenuItem(menuMain, IDM_VID_FS_FULL+2, MF_UNCHECKED); @@ -447,12 +436,7 @@ MainWindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) case IDM_VID_SDL_SW: case IDM_VID_SDL_HW: -#ifdef USE_D2D - case IDM_VID_D2D: -#endif -#ifdef USE_VNC case IDM_VID_VNC: -#endif CheckMenuItem(hmenu, IDM_VID_SDL_SW + vid_api, MF_UNCHECKED); plat_setvid(LOWORD(wParam) - IDM_VID_SDL_SW); CheckMenuItem(hmenu, IDM_VID_SDL_SW + vid_api, MF_CHECKED);