mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add one more frame zoom level.
This commit is contained in:
parent
36ecf16d59
commit
623c32a7a0
@ -446,7 +446,7 @@ void View::DrawFrames()
|
|||||||
const auto wheel = io.MouseWheel;
|
const auto wheel = io.MouseWheel;
|
||||||
if( wheel > 0 )
|
if( wheel > 0 )
|
||||||
{
|
{
|
||||||
if( m_frameScale > 0 ) m_frameScale--;
|
if( m_frameScale > -1 ) m_frameScale--;
|
||||||
}
|
}
|
||||||
else if( wheel < 0 )
|
else if( wheel < 0 )
|
||||||
{
|
{
|
||||||
@ -454,7 +454,7 @@ void View::DrawFrames()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const int fwidth = m_frameScale == 0 ? 4 : 1;
|
const int fwidth = m_frameScale == 0 ? 4 : ( m_frameScale == -1 ? 6 : 1 );
|
||||||
const int group = m_frameScale < 2 ? 1 : ( 1 << ( m_frameScale - 1 ) );
|
const int group = m_frameScale < 2 ? 1 : ( 1 << ( m_frameScale - 1 ) );
|
||||||
const int total = m_frames.size();
|
const int total = m_frames.size();
|
||||||
const int onScreen = ( w - 2 ) / fwidth;
|
const int onScreen = ( w - 2 ) / fwidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user