From 4227477fc4cb1d5ef7d70d354762e8017435e412 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Thu, 28 Apr 2016 00:47:30 +0100 Subject: [PATCH] ConsoleLogger: Use wxTE_NOHIDESEL style for pxLogTextCtrl It prevents the console logger text from disappearing on Windows and we can remove a Windows specific fix. --- pcsx2/gui/pxLogTextCtrl.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pcsx2/gui/pxLogTextCtrl.cpp b/pcsx2/gui/pxLogTextCtrl.cpp index 6ec310ff23..485d2d4a25 100644 --- a/pcsx2/gui/pxLogTextCtrl.cpp +++ b/pcsx2/gui/pxLogTextCtrl.cpp @@ -37,7 +37,7 @@ void pxLogTextCtrl::DispatchEvent( const PluginEventType& evt ) pxLogTextCtrl::pxLogTextCtrl( wxWindow* parent ) : wxTextCtrl( parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, - wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2 + wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2 | wxTE_NOHIDESEL ) { m_FreezeWrites = false; @@ -93,11 +93,5 @@ void pxLogTextCtrl::ConcludeIssue() ScrollLines(1); ShowPosition( GetLastPosition() ); - -#ifdef __WXMSW__ - // This is needed to keep the scrolling "nice" when the textbox doesn't - // have the focus. - ::SendMessage((HWND)GetHWND(), WM_VSCROLL, SB_BOTTOM, (LPARAM)NULL); -#endif }