From 609442318af74a0be54522b11ce5efc666975d20 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sat, 28 Nov 2015 08:45:39 +0000 Subject: [PATCH] debugger:linux: Fix list view sizing The breakpoints, threads and stack frames list view sizing now works properly on wx3.0. It's still completely broken on wx2.8. Oh well. --- pcsx2/gui/Debugger/DebuggerLists.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pcsx2/gui/Debugger/DebuggerLists.cpp b/pcsx2/gui/Debugger/DebuggerLists.cpp index 67c0eef405..f92b981a78 100644 --- a/pcsx2/gui/Debugger/DebuggerLists.cpp +++ b/pcsx2/gui/Debugger/DebuggerLists.cpp @@ -73,6 +73,7 @@ void GenericListView::resizeColumns(int totalWidth) void GenericListView::sizeEvent(wxSizeEvent& evt) { resizeColumns(GetClientSize().x); + evt.Skip(); } void GenericListView::keydownEvent(wxKeyEvent& evt) @@ -178,11 +179,6 @@ GenericListViewColumn breakpointColumns[BPL_COLUMNCOUNT] = { BreakpointList::BreakpointList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly) : GenericListView(parent,breakpointColumns,BPL_COLUMNCOUNT), cpu(_cpu),disasm(_disassembly) { -#ifdef __linux__ - // On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page - // Far from ideal but at least I can use the memory window! - this->SetSize(wxSize(1000, 200)); -#endif } int BreakpointList::getRowCount() @@ -513,11 +509,6 @@ GenericListViewColumn threadColumns[TL_COLUMNCOUNT] = { ThreadList::ThreadList(wxWindow* parent, DebugInterface* _cpu) : GenericListView(parent,threadColumns,TL_COLUMNCOUNT), cpu(_cpu) { -#ifdef __linux__ - // On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page - // Far from ideal but at least I can use the memory window! - this->SetSize(wxSize(1000, 200)); -#endif } void ThreadList::reloadThreads() @@ -658,11 +649,6 @@ GenericListViewColumn stackFrameolumns[SF_COLUMNCOUNT] = { StackFramesList::StackFramesList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly) : GenericListView(parent,stackFrameolumns,SF_COLUMNCOUNT), cpu(_cpu), disassembly(_disassembly) { -#ifdef __linux__ - // On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page - // Far from ideal but at least I can use the memory window! - this->SetSize(wxSize(1000, 200)); -#endif } void StackFramesList::loadStackFrames(EEThread& currentThread)