Fixed masking of font size

This commit is contained in:
Daniel Collin 2012-11-08 21:51:19 +01:00
parent f11348dafd
commit bf7c7cfff0

View File

@ -65,7 +65,7 @@ static int renderChannel(const TrackViewInfo* viewInfo, struct sync_track* track
int x_adjust = 0;
Emgui_setFont(viewInfo->smallFontId);
text_size = Emgui_getTextSize(track->name) + 4;
text_size = (Emgui_getTextSize(track->name) & 0xffff) + 4;
// if text is smaller than min size we center the text