GS Debugger: Fix Length of dump.

This commit is contained in:
lightningterror 2021-12-04 17:25:21 +01:00
parent af585bffa9
commit bb55c320c1
2 changed files with 2 additions and 8 deletions

View File

@ -576,8 +576,8 @@ DebugTab::DebugTab(wxWindow* parent)
auto* dump_grid = new wxFlexGridSizer(2, space, space); auto* dump_grid = new wxFlexGridSizer(2, space, space);
start_dump_spin = m_ui.addSpinAndLabel(dump_grid, "Start of Dump:", "saven", 0, pow(10, 9), 0).first; m_ui.addSpinAndLabel(dump_grid, "Start of Dump:", "saven", 0, pow(10, 9), 0);
end_dump_spin = m_ui.addSpinAndLabel(dump_grid, "End of Dump:", "savel", 0, pow(10, 5), 5000).first; m_ui.addSpinAndLabel(dump_grid, "Length of Dump:", "savel", 1, pow(10, 5), 5000);
debug_box->AddSpacer(space); debug_box->AddSpacer(space);
debug_box->Add(dump_grid); debug_box->Add(dump_grid);
@ -600,10 +600,6 @@ DebugTab::DebugTab(wxWindow* parent)
void DebugTab::DoUpdate() void DebugTab::DoUpdate()
{ {
m_ui.Update(); m_ui.Update();
if (!end_dump_spin || !start_dump_spin)
return;
if (end_dump_spin->GetValue() < start_dump_spin->GetValue())
end_dump_spin->SetValue(start_dump_spin->GetValue());
} }
Dialog::Dialog() Dialog::Dialog()

View File

@ -139,8 +139,6 @@ namespace GSSettingsDialog
{ {
public: public:
GSUIElementHolder m_ui; GSUIElementHolder m_ui;
wxSpinCtrl* start_dump_spin = nullptr;
wxSpinCtrl* end_dump_spin = nullptr;
bool m_is_ogl_hw = false; bool m_is_ogl_hw = false;
DebugTab(wxWindow* parent); DebugTab(wxWindow* parent);