mirror of https://github.com/PCSX2/pcsx2.git
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.
This commit is contained in:
parent
f78d1a4018
commit
4227477fc4
|
@ -37,7 +37,7 @@ void pxLogTextCtrl::DispatchEvent( const PluginEventType& evt )
|
||||||
|
|
||||||
pxLogTextCtrl::pxLogTextCtrl( wxWindow* parent )
|
pxLogTextCtrl::pxLogTextCtrl( wxWindow* parent )
|
||||||
: wxTextCtrl( parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize,
|
: wxTextCtrl( parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize,
|
||||||
wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2
|
wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2 | wxTE_NOHIDESEL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
m_FreezeWrites = false;
|
m_FreezeWrites = false;
|
||||||
|
@ -93,11 +93,5 @@ void pxLogTextCtrl::ConcludeIssue()
|
||||||
|
|
||||||
ScrollLines(1);
|
ScrollLines(1);
|
||||||
ShowPosition( GetLastPosition() );
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue