Skip to content

Commit

Permalink
Revert "reset status bar items at reset" (#137)
Browse files Browse the repository at this point in the history
Reverts #136
  • Loading branch information
stlintel authored Nov 17, 2023
1 parent c247b43 commit db17e4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions bochs/gui/gui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ void bx_gui_c::cdrom1_handler(void)
void bx_gui_c::reset_handler(void)
{
BX_INFO(("system RESET callback"));
BX_GUI_THIS statusbar_setall(0);
bx_pc_system.Reset(BX_RESET_HARDWARE);
}

Expand Down Expand Up @@ -987,12 +986,6 @@ void bx_gui_c::statusbar_setitem(int element, bool active, bool w)
}
}

void bx_gui_c::statusbar_setall(bool active)
{
for (int i=0; i<BX_MAX_STATUSITEMS; i++)
statusbar_setitem(i, active);
}

void bx_gui_c::led_timer_handler(void *this_ptr)
{
bx_gui_c *class_ptr = (bx_gui_c *) this_ptr;
Expand Down
1 change: 0 additions & 1 deletion bochs/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ class BOCHSAPI bx_gui_c : public logfunctions {
int register_statusitem(const char *text, bool auto_off=0);
void unregister_statusitem(int id);
void statusbar_setitem(int element, bool active, bool w=0);
void statusbar_setall(bool active);
static void init_signal_handlers();
static void toggle_mouse_enable(void);
bool mouse_toggle_check(Bit32u key, bool pressed);
Expand Down

0 comments on commit db17e4a

Please sign in to comment.