Fixed issue that some non-grouped channels would render the name with wrong font

This commit is contained in:
Daniel Collin 2012-12-29 18:17:20 +01:00
parent cc2543fe17
commit 8c1aba73a4

View File

@ -296,7 +296,6 @@ static int renderChannel(struct TrackInfo* info, int startX, Track* trackData, b
if (info->trackData->syncData.tracks)
track = info->trackData->syncData.tracks[trackData->index];
size = renderName(trackData->displayName, startX, info->startY - (font_size * 2), min_track_size, folded, trackData->active);
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
Emgui_setFont(info.viewInfo->smallFontId);
renderChannel(&info, x_pos, track, false);
}