Fixed issue that some non-grouped channels would render the name with wrong font
This commit is contained in:
parent
cc2543fe17
commit
8c1aba73a4
@ -296,7 +296,6 @@ static int renderChannel(struct TrackInfo* info, int startX, Track* trackData, b
|
|||||||
if (info->trackData->syncData.tracks)
|
if (info->trackData->syncData.tracks)
|
||||||
track = info->trackData->syncData.tracks[trackData->index];
|
track = info->trackData->syncData.tracks[trackData->index];
|
||||||
|
|
||||||
|
|
||||||
size = renderName(trackData->displayName, startX, info->startY - (font_size * 2), min_track_size, folded, trackData->active);
|
size = renderName(trackData->displayName, startX, info->startY - (font_size * 2), min_track_size, folded, trackData->active);
|
||||||
|
|
||||||
if (folded)
|
if (folded)
|
||||||
@ -582,6 +581,7 @@ bool TrackView_render(TrackViewInfo* viewInfo, TrackData* trackData)
|
|||||||
{
|
{
|
||||||
// if selected track is less than the first rendered track then we need to reset it to this one
|
// if selected track is less than the first rendered track then we need to reset it to this one
|
||||||
|
|
||||||
|
Emgui_setFont(info.viewInfo->smallFontId);
|
||||||
renderChannel(&info, x_pos, track, false);
|
renderChannel(&info, x_pos, track, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user