Skip to content

Commit

Permalink
[#59] TrackEditor: Improvements and bugfixes (Part 15: Fixed visualiz…
Browse files Browse the repository at this point in the history
…ation of track structure)
  • Loading branch information
tomas-nestorovic committed Feb 21, 2021
1 parent 0c6974b commit 0f99138
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main/src/Image_TrackEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@
::SetViewportOrgEx( dc, 0, org.y, nullptr );
::SelectObject( dc, font );
::SetBkMode( dc, OPAQUE );
const TLogTime iwTimeDefaultHalf=tr.profile.iwTimeDefault/2;
while (continuePainting && !pe->IsEmpty()){
const TLogTime a=std::max(timeA,pe->tStart), z=std::min(timeZ,pe->tEnd);
const TLogTime a=std::max(timeA,pe->tStart+iwTimeDefaultHalf), z=std::min(timeZ,pe->tEnd+iwTimeDefaultHalf);
if (a<z){ // ParseEvent visible
const int xa=te.timeline.GetUnitCount(a)-nUnitsA, xz=te.timeline.GetUnitCount(z)-nUnitsA;
char label[80];
Expand Down

0 comments on commit 0f99138

Please sign in to comment.