mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +00:00
Reverse mouse buttons for jumping in symbol view.
This commit is contained in:
parent
1419283a91
commit
4c69b21a29
@ -3352,7 +3352,7 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add
|
|||||||
if( !mouseHandled && ( ImGui::IsMouseClicked( 0 ) || ImGui::IsMouseClicked( 1 ) ) )
|
if( !mouseHandled && ( ImGui::IsMouseClicked( 0 ) || ImGui::IsMouseClicked( 1 ) ) )
|
||||||
{
|
{
|
||||||
m_displayMode = DisplayMixed;
|
m_displayMode = DisplayMixed;
|
||||||
SelectLine( lineNum, worker, ImGui::IsMouseClicked( 1 ) );
|
SelectLine( lineNum, worker, ImGui::IsMouseClicked( 0 ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -3794,7 +3794,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
{
|
{
|
||||||
if( m_source.filename() == fileName )
|
if( m_source.filename() == fileName )
|
||||||
{
|
{
|
||||||
if( ImGui::IsMouseClicked( 1 ) ) m_targetLine = srcline;
|
if( ImGui::IsMouseClicked( 0 ) ) m_targetLine = srcline;
|
||||||
SelectLine( srcline, &worker, false );
|
SelectLine( srcline, &worker, false );
|
||||||
m_displayMode = DisplayMixed;
|
m_displayMode = DisplayMixed;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user