mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
HandleTimelineMouse() doesn't need pxns parameter.
This commit is contained in:
parent
dec4713854
commit
8d565e46d6
@ -285,7 +285,7 @@ private:
|
|||||||
void DrawGpuInfoChildren( const V& children, int64_t ztime );
|
void DrawGpuInfoChildren( const V& children, int64_t ztime );
|
||||||
|
|
||||||
void HandleRange( Range& range, int64_t timespan, const ImVec2& wpos, float w );
|
void HandleRange( Range& range, int64_t timespan, const ImVec2& wpos, float w );
|
||||||
void HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns );
|
void HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w );
|
||||||
void HandleTimelineKeyboard( int64_t timespan, const ImVec2& wpos, float w );
|
void HandleTimelineKeyboard( int64_t timespan, const ImVec2& wpos, float w );
|
||||||
|
|
||||||
void AddAnnotation( int64_t start, int64_t end );
|
void AddAnnotation( int64_t start, int64_t end );
|
||||||
|
@ -15,7 +15,7 @@ namespace tracy
|
|||||||
|
|
||||||
extern double s_time;
|
extern double s_time;
|
||||||
|
|
||||||
void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w, double& pxns )
|
void View::HandleTimelineMouse( int64_t timespan, const ImVec2& wpos, float w )
|
||||||
{
|
{
|
||||||
assert( timespan > 0 );
|
assert( timespan > 0 );
|
||||||
auto& io = ImGui::GetIO();
|
auto& io = ImGui::GetIO();
|
||||||
@ -283,7 +283,7 @@ void View::DrawTimeline()
|
|||||||
v->range.StartFrame();
|
v->range.StartFrame();
|
||||||
HandleRange( v->range, timespan, ImGui::GetCursorScreenPos(), w );
|
HandleRange( v->range, timespan, ImGui::GetCursorScreenPos(), w );
|
||||||
}
|
}
|
||||||
HandleTimelineMouse( timespan, ImGui::GetCursorScreenPos(), w, pxns );
|
HandleTimelineMouse( timespan, ImGui::GetCursorScreenPos(), w );
|
||||||
}
|
}
|
||||||
if( ImGui::IsWindowFocused( ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem ) )
|
if( ImGui::IsWindowFocused( ImGuiHoveredFlags_ChildWindows | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user