Skip to content

Commit

Permalink
Fixed wx compilation without USB debugger support.
Browse files Browse the repository at this point in the history
  • Loading branch information
vruppert committed Jun 16, 2024
1 parent 7abf471 commit 4f39404
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bochs/gui/wx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,10 @@ void bx_wx_gui_c::specific_init(int argc, char **argv, unsigned headerbar_y)

new_gfx_api = 1;
new_text_api = 1;
dialog_caps = BX_GUI_DLG_USER | BX_GUI_DLG_SNAPSHOT | BX_GUI_DLG_SAVE_RESTORE | BX_GUI_DLG_USB;
dialog_caps = BX_GUI_DLG_USER | BX_GUI_DLG_SNAPSHOT | BX_GUI_DLG_SAVE_RESTORE;
#if BX_USE_WIN32USBDEBUG
dialog_caps |= BX_GUI_DLG_USB;
#endif
}

void bx_wx_gui_c::handle_events(void)
Expand Down Expand Up @@ -1194,9 +1197,11 @@ void bx_wx_gui_c::handle_events(void)
} else if (tb_button == 4) {
// userbutton_handler() also calls a dialog.
userbutton_handler();
#if BX_USE_WIN32USBDEBUG
} else if (tb_button == 5) {
// usb_handler() also calls a dialog.
usb_handler();
#endif
}
}

Expand Down

0 comments on commit 4f39404

Please sign in to comment.